Completed
Push — 2.0 ( d47467...f3883e )
by Marco
14:11 queued 02:48
created
src/Comodojo/RpcClient/Processor/JsonProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $payload = array();
33 33
 
34
-        foreach ($requests as $request) {
34
+        foreach ( $requests as $request ) {
35 35
 
36 36
             list($composed, $rid) = self::composeJsonRequest($request);
37 37
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         }
43 43
 
44
-        return ( sizeof($payload > 1) ) ? json_encode($payload) : json_encode($payload[0]);
44
+        return (sizeof($payload > 1)) ? json_encode($payload) : json_encode($payload[0]);
45 45
 
46 46
     }
47 47
 
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Processor/XmlProcessor.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
 
76 76
         $this->logger->notice("Performing a single XML call");
77 77
 
78
-    	$this->logger->debug("Data dump before encoding", $request->toArray());
78
+        $this->logger->debug("Data dump before encoding", $request->toArray());
79 79
 
80 80
         try {
81 81
 
82
-        	// encoding
82
+            // encoding
83 83
 
84
-        	foreach ( $request->getSpecialTypes() as $key => $value ) {
84
+            foreach ( $request->getSpecialTypes() as $key => $value ) {
85 85
 
86 86
                 $this->encoder->setValueType($key, $value);
87 87
 
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 
118 118
         $composed_requests = array();
119 119
 
120
-    	$this->logger->notice("Performing an XML multicall");
120
+        $this->logger->notice("Performing an XML multicall");
121 121
 
122
-    	$this->logger->debug("Data dump before encoding", $requests);
122
+        $this->logger->debug("Data dump before encoding", $requests);
123 123
 
124 124
         foreach ($requests as $request) {
125 125
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 
122 122
     	$this->logger->debug("Data dump before encoding", $requests);
123 123
 
124
-        foreach ($requests as $request) {
124
+        foreach ( $requests as $request ) {
125 125
 
126 126
             $composed_requests[] = array($request->getMethod(), $request->getParameters());
127 127
 
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Components/RequestManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
         $element = array_filter(
91 91
             $this->requests,
92
-            function ($e) use ($uid) {
92
+            function($e) use ($uid) {
93 93
                 return $e->getUid() == $uid;
94 94
             }
95 95
         );
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Interfaces/Transport.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /**
8 8
      * Perform call using transport layer
9 9
      *
10
-     * @param LoggerInterface $looger
10
+     * @param LoggerInterface $logger
11 11
      * @param string $data
12 12
      * @param string $content_type
13 13
      * @param string|bool $encrypt
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Components/HttpTransport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @throws \Comodojo\Exception\RpcException
23 23
      * @throws \Comodojo\Exception\HttpException
24 24
      */
25
-    public function performCall(LoggerInterface $logger, $data, $content_type, $encrypt=false) {
25
+    public function performCall(LoggerInterface $logger, $data, $content_type, $encrypt = false) {
26 26
 
27 27
         $this->setHttpMethod("POST");
28 28
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
             $this->aes->setKey($key);
78 78
 
79
-            $return = 'comodojo_encrypted_request-'.base64_encode( $this->aes->encrypt($data) );
79
+            $return = 'comodojo_encrypted_request-'.base64_encode($this->aes->encrypt($data));
80 80
 
81 81
         } else {
82 82
 
Please login to merge, or discard this patch.