Completed
Push — master ( 1e6784...c3b2cd )
by Marco
12:09
created
src/RpcServer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
             
321 321
             $payload = $this->uncan($this->payload);
322 322
 
323
-            $this->logger->debug("Decoded payload", (array)$payload);
323
+            $this->logger->debug("Decoded payload", (array) $payload);
324 324
 
325 325
             if ( $this->protocol == self::XMLRPC ) $result = XmlProcessor::process($payload, $parameters_object, $this->logger);
326 326
             
@@ -480,30 +480,30 @@  discard block
 block discarded – undo
480 480
      */
481 481
     private static function setIntrospectionMethods($methods) {
482 482
         
483
-        $methods->add( RpcMethod::create("system.getCapabilities", "\Comodojo\RpcServer\Reserved\GetCapabilities", "execute")
483
+        $methods->add(RpcMethod::create("system.getCapabilities", "\Comodojo\RpcServer\Reserved\GetCapabilities", "execute")
484 484
             ->setDescription("This method lists all the capabilites that the RPC server has: the (more or less standard) extensions to the RPC spec that it adheres to")
485 485
             ->setReturnType('struct')
486 486
         );
487 487
         
488
-        $methods->add( RpcMethod::create("system.listMethods", "\Comodojo\RpcServer\Introspection\ListMethods", "execute")
488
+        $methods->add(RpcMethod::create("system.listMethods", "\Comodojo\RpcServer\Introspection\ListMethods", "execute")
489 489
             ->setDescription("This method lists all the methods that the RPC server knows how to dispatch")
490 490
             ->setReturnType('array')
491 491
         );
492 492
             
493
-        $methods->add( RpcMethod::create("system.methodHelp", "\Comodojo\RpcServer\Introspection\MethodHelp", "execute")
493
+        $methods->add(RpcMethod::create("system.methodHelp", "\Comodojo\RpcServer\Introspection\MethodHelp", "execute")
494 494
             ->setDescription("Returns help text if defined for the method passed, otherwise returns an empty string")
495 495
             ->setReturnType('string')
496 496
             ->addParameter('string', 'method')
497 497
         );
498 498
             
499
-        $methods->add( RpcMethod::create("system.methodSignature", "\Comodojo\RpcServer\Introspection\MethodSignature", "execute")
499
+        $methods->add(RpcMethod::create("system.methodSignature", "\Comodojo\RpcServer\Introspection\MethodSignature", "execute")
500 500
             ->setDescription("Returns an array of known signatures (an array of arrays) for the method name passed.". 
501 501
                 "If no signatures are known, returns a none-array (test for type != array to detect missing signature)")
502 502
             ->setReturnType('array')
503 503
             ->addParameter('string', 'method')
504 504
         );
505 505
         
506
-        $methods->add( RpcMethod::create("system.multicall", "\Comodojo\RpcServer\Reserved\Multicall", "execute")
506
+        $methods->add(RpcMethod::create("system.multicall", "\Comodojo\RpcServer\Reserved\Multicall", "execute")
507 507
             ->setDescription("Boxcar multiple RPC calls in one request. See http://www.xmlrpc.com/discuss/msgReader\$1208 for details")
508 508
             ->setReturnType('array')
509 509
             ->addParameter('array', 'requests')
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
             'json-rpc' => array('http://www.jsonrpc.org/specification', 2)
528 528
         );
529 529
     
530
-        foreach ($supported_capabilities as $capability => $values) {
530
+        foreach ( $supported_capabilities as $capability => $values ) {
531 531
             
532 532
             $capabilities->add($capability, $values[0], $values[1]);
533 533
 
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
             -31001 => "Recursive system.multicall forbidden"
559 559
         );
560 560
 
561
-        foreach ($std_rpc_errors as $code => $message) {
561
+        foreach ( $std_rpc_errors as $code => $message ) {
562 562
             
563 563
             $errors->add($code, $message);
564 564
 
Please login to merge, or discard this patch.