Completed
Push — master ( 2b2467...86fe2f )
by Marco
12:06
created
src/Comodojo/RpcClient/Components/Encryption.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      *
35 35
      * @param   string  $key Encryption key
36 36
      *
37
-     * @return  \Comodojo\RpcClient\RpcClient
37
+     * @return  Encryption
38 38
      *
39 39
      * @throws \Exception
40 40
      */
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/RpcRequest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
 
61 61
     }
62 62
 
63
+    /**
64
+     * @param boolean $id
65
+     */
63 66
     public function setId($id = null) {
64 67
 
65 68
         if ( is_null($id) || is_int($id) || is_bool($id) ) {
Please login to merge, or discard this patch.
src/Comodojo/RpcClient/Transport/Sender.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
     private $aes = null;
17 17
 
18
+    /**
19
+     * @param string $server
20
+     */
18 21
     public function __construct($server, LoggerInterface $logger) {
19 22
 
20 23
         $this->logger = $logger;
@@ -104,6 +107,10 @@  discard block
 block discarded – undo
104 107
 
105 108
     }
106 109
 
110
+    /**
111
+     * @param string $data
112
+     * @param boolean $key
113
+     */
107 114
     private function can($data, $key) {
108 115
 
109 116
         if ( !empty($key) && is_string($key) ) {
@@ -124,6 +131,10 @@  discard block
 block discarded – undo
124 131
 
125 132
     }
126 133
 
134
+    /**
135
+     * @param string $data
136
+     * @param boolean $key
137
+     */
127 138
     private function uncan($data, $key) {
128 139
 
129 140
         if ( !empty($key) && is_string($key) ) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @throws \Comodojo\Exception\RpcException
61 61
      * @throws \Comodojo\Exception\HttpException
62 62
      */
63
-    public function performCall($data, $content_type, $encrypt=false) {
63
+    public function performCall($data, $content_type, $encrypt = false) {
64 64
 
65 65
         try {
66 66
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
             $this->aes->setKey($key);
114 114
 
115
-            $return = 'comodojo_encrypted_request-'.base64_encode( $this->aes->encrypt($data) );
115
+            $return = 'comodojo_encrypted_request-'.base64_encode($this->aes->encrypt($data));
116 116
 
117 117
         } else {
118 118
 
Please login to merge, or discard this patch.
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,15 +71,15 @@  discard block
 block discarded – undo
71 71
 
72 72
         $this->requests = $request;
73 73
 
74
-    	$this->logger->notice("Performing a single XML call");
74
+        $this->logger->notice("Performing a single XML call");
75 75
 
76
-    	$this->logger->debug("Data dump before encoding", $request);
76
+        $this->logger->debug("Data dump before encoding", $request);
77 77
 
78 78
         try {
79 79
 
80
-        	// encoding
80
+            // encoding
81 81
 
82
-        	foreach ( $request->getSpecialTypes() as $key => $value ) {
82
+            foreach ( $request->getSpecialTypes() as $key => $value ) {
83 83
 
84 84
                 $this->encoder->setValueType($key, $value);
85 85
 
@@ -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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         try {
39 39
 
40
-            $payload = ( sizeof($requests) > 1 ) ? $this->encodeMulticall($requests) : $this->encodeSingleCall($requests[0]);
40
+            $payload = (sizeof($requests) > 1) ? $this->encodeMulticall($requests) : $this->encodeSingleCall($requests[0]);
41 41
 
42 42
         } catch (XmlrpcException $xe) {
43 43
 
@@ -121,7 +121,7 @@  discard block
 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.