Passed
Push — master ( 6a6cc8...5987e0 )
by Gaetano
07:30
created
src/Encoder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
                                 'scalar' => $val,
91 91
                                 'timestamp' => \PhpXmlRpc\Helper\Date::iso8601Decode($val)
92 92
                             );
93
-                            return (object)$xmlrpcVal;
93
+                            return (object) $xmlrpcVal;
94 94
                         case 'base64':
95 95
                             $xmlrpcVal = array(
96 96
                                 'xmlrpc_type' => 'base64',
97 97
                                 'scalar' => $val
98 98
                             );
99
-                            return (object)$xmlrpcVal;
99
+                            return (object) $xmlrpcVal;
100 100
                         case 'string':
101 101
                             if (isset($options['extension_api_encoding'])) {
102 102
                                 // if iconv is not available, we use mb_convert_encoding
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             case 'msg':
166 166
                 $paramCount = $xmlrpcVal->getNumParams();
167 167
                 $arr = array();
168
-                for ($i = 0; $i < $paramCount; $i++) {
168
+                for ($i = 0; $i<$paramCount; $i++) {
169 169
                     $arr[] = $this->decode($xmlrpcVal->getParam($i), $options);
170 170
                 }
171 171
                 return $arr;
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                 break;
292 292
             case 'resource':
293 293
                 if (in_array('extension_api', $options)) {
294
-                    $xmlrpcVal = new Value((int)$phpVal, Value::$xmlrpcInt);
294
+                    $xmlrpcVal = new Value((int) $phpVal, Value::$xmlrpcInt);
295 295
                 } else {
296 296
                     $xmlrpcVal = new Value();
297 297
                 }
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
                     if ($valEncoding == 'ISO-8859-1') {
341 341
                         $xmlVal = utf8_encode($xmlVal);
342 342
                     } else {
343
-                        $this->getLogger()->errorLog('XML-RPC: ' . __METHOD__ . ': invalid charset encoding of xml text: ' . $valEncoding);
343
+                        $this->getLogger()->errorLog('XML-RPC: '.__METHOD__.': invalid charset encoding of xml text: '.$valEncoding);
344 344
                     }
345 345
                 }
346 346
             }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             $parserOptions
363 363
         );
364 364
 
365
-        if ($xmlRpcParser->_xh['isf'] > 1) {
365
+        if ($xmlRpcParser->_xh['isf']>1) {
366 366
             // test that $xmlrpc->_xh['value'] is an obj, too???
367 367
 
368 368
             $this->getLogger()->errorLog($xmlRpcParser->_xh['isf_reason']);
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
             case 'methodcall':
388 388
                 $req = new Request($xmlRpcParser->_xh['method']);
389
-                for ($i = 0; $i < count($xmlRpcParser->_xh['params']); $i++) {
389
+                for ($i = 0; $i<count($xmlRpcParser->_xh['params']); $i++) {
390 390
                     $req->addParam($xmlRpcParser->_xh['params'][$i]);
391 391
                 }
392 392
                 return $req;
Please login to merge, or discard this patch.