Completed
Push — master ( 54e267...8d7cab )
by Marco
02:36
created
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/Traits/Protocol.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         $proto = strtoupper($protocol);
49 49
 
50
-        if ( !in_array($proto, static::$supported_protocols) ){
50
+        if ( !in_array($proto, static::$supported_protocols) ) {
51 51
             throw new Exception("Invalid RPC protocol");
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/RpcClient.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
 
99 99
         $this->setLogger(
100 100
             is_null($logger) ?
101
-                LogManager::create('rpcclient', false)->getLogger() :
102
-                $logger
101
+                LogManager::create('rpcclient', false)->getLogger() : $logger
103 102
             );
104 103
 
105 104
         $this->request = new RequestManager();
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Processor/JsonProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         $payload = [];
40 40
 
41
-        foreach ($requests as $request) {
41
+        foreach ( $requests as $request ) {
42 42
 
43 43
             list($composed, $rid) = self::composeJsonRequest($request);
44 44
 
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Processor/XmlProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 
134 134
     	$this->logger->debug("Data dump before encoding", $requests);
135 135
 
136
-        foreach ($requests as $request) {
136
+        foreach ( $requests as $request ) {
137 137
 
138 138
             $composed_requests[] = [
139 139
                 $request->getMethod(),
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
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         LoggerInterface $logger,
45 45
         $data,
46 46
         $content_type,
47
-        $encrypt=false
47
+        $encrypt = false
48 48
     ) {
49 49
 
50 50
         $this->setHttpMethod("POST");
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
             $this->aes->setKey($key);
101 101
 
102
-            $return = 'comodojo_encrypted_request-'.base64_encode( $this->aes->encrypt($data) );
102
+            $return = 'comodojo_encrypted_request-'.base64_encode($this->aes->encrypt($data));
103 103
 
104 104
         } else {
105 105
 
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/RpcRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,8 +181,8 @@
 block discarded – undo
181 181
         if (
182 182
             $id === null ||
183 183
             is_bool($id) ||
184
-            ( is_int($id) && $id > 0 ) ||
185
-            ( is_string($id) && !empty($id) )
184
+            (is_int($id) && $id > 0) ||
185
+            (is_string($id) && !empty($id))
186 186
         ) {
187 187
 
188 188
             $this->id = $id;
Please login to merge, or discard this patch.