Passed
Pull Request — v4.x (#135)
by
unknown
02:04
created
src/Request/Call/Parameter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -134,23 +134,23 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public static function make($xValue): ParameterInterface
136 136
     {
137
-        if($xValue instanceof ParameterInterface)
137
+        if ($xValue instanceof ParameterInterface)
138 138
         {
139 139
             return $xValue;
140 140
         }
141
-        if(is_numeric($xValue))
141
+        if (is_numeric($xValue))
142 142
         {
143 143
             return new Parameter(self::NUMERIC_VALUE, $xValue);
144 144
         }
145
-        if(is_string($xValue))
145
+        if (is_string($xValue))
146 146
         {
147 147
             return new Parameter(self::QUOTED_VALUE, $xValue);
148 148
         }
149
-        if(is_bool($xValue))
149
+        if (is_bool($xValue))
150 150
         {
151 151
             return new Parameter(self::BOOL_VALUE, $xValue);
152 152
         }
153
-        if($xValue instanceof JsCall)
153
+        if ($xValue instanceof JsCall)
154 154
         {
155 155
             return new Parameter(self::JS_CALL, $xValue);
156 156
         }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     protected function getNumericValueScript(): string
254 254
     {
255
-        return (string)$this->xValue;
255
+        return (string) $this->xValue;
256 256
     }
257 257
 
258 258
     /**
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     protected function getUnquotedValueScript(): string
264 264
     {
265
-        return (string)$this->xValue;
265
+        return (string) $this->xValue;
266 266
     }
267 267
 
268 268
     /**
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     protected function getPageNumberScript(): string
286 286
     {
287
-        return (string)$this->xValue;
287
+        return (string) $this->xValue;
288 288
     }
289 289
 
290 290
     /**
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     public function getScript(): string
306 306
     {
307 307
         $sMethodName = 'get' . $this->sType . 'Script';
308
-        if(!method_exists($this, $sMethodName))
308
+        if (!method_exists($this, $sMethodName))
309 309
         {
310 310
             return '';
311 311
         }
Please login to merge, or discard this patch.
templates/callables/object.js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php $sJsClass = $this->sPrefix . $this->sClass ?>
2 2
 if(<?php echo $sJsClass ?> === undefined) <?php echo $sJsClass ?> = {};
3
-<?php foreach($this->aMethods as $aMethod): ?>
3
+<?php foreach ($this->aMethods as $aMethod): ?>
4 4
 <?php echo $sJsClass ?>.<?php echo $aMethod['name'] ?> = function() {
5 5
     return jaxon.request({ jxncls: '<?php echo $this->sClass ?>', jxnmthd: '<?php
6 6
             echo $aMethod['name'] ?>' }, { parameters: arguments<?php
7
-            foreach($aMethod['config'] as $sKey => $sValue): ?>, <?php
7
+            foreach ($aMethod['config'] as $sKey => $sValue): ?>, <?php
8 8
             echo $sKey ?>: <?php echo $sValue ?><?php endforeach ?> });
9 9
 };
10 10
 <?php endforeach;
Please login to merge, or discard this patch.