Completed
Push — master ( 9cfebb...854c80 )
by Jan
14:51
created
src/Stream/DefaultStream.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
      * Internal wrapper method, mainly for testing.
189 189
      *
190 190
      * @param resource $stream
191
-     * @param          $len
191
+     * @param          integer|null $len
192 192
      *
193 193
      * @return string
194 194
      */
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
      * Internal wrapper method, mainly for testing.
216 216
      *
217
-     * @param $stream
217
+     * @param resource $stream
218 218
      *
219 219
      * @return array
220 220
      */
Please login to merge, or discard this patch.
src/RespUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         return array_reduce(
26 26
             $args,
27
-            function ($msg, $arg) {
27
+            function($msg, $arg) {
28 28
                 return $msg.'$'.strlen($arg)."\r\n".$arg."\r\n";
29 29
             },
30 30
             '*'.count($args)."\r\n"
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 return trim($stream->readBytes($result + 2));
67 67
 
68 68
             case '*': // ARRAYS
69
-                $cnt = (int)$result;
69
+                $cnt = (int) $result;
70 70
                 $out = [];
71 71
 
72 72
                 for ($i = 0; $i < $cnt; $i++) {
Please login to merge, or discard this patch.
src/Stream/CachingPool.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function connect()
61 61
     {
62
-        $key = array_reduce($this->nodeUrls, function ($current, $prev) {
62
+        $key = array_reduce($this->nodeUrls, function($current, $prev) {
63 63
             return md5($current.$prev);
64 64
         }, '');
65 65
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function setCacheTtl($ttl)
102 102
     {
103
-        $this->ttl = (int)$ttl;
103
+        $this->ttl = (int) $ttl;
104 104
     }
105 105
 
106 106
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     private function updateNodes($key, StreamInterface $stream)
114 114
     {
115
-        $this->nodeUrls = array_map(function (NodeInfo $element) {
115
+        $this->nodeUrls = array_map(function(NodeInfo $element) {
116 116
             return $element->getServer();
117 117
         }, (new Node($stream, $this->log))->hello());
118 118
 
Please login to merge, or discard this patch.