Completed
Branch 0.4-dev (d27253)
by Evgenij
03:26
created
src/RequestExecutor/Pipeline/TimeoutStage.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,10 +114,10 @@
 block discarded – undo
114 114
 
115 115
         return ($desiredTimeout !== RequestExecutorInterface::WAIT_FOREVER) &&
116 116
                (
117
-                   ($hasConnected && $lastOperationTime !== null) ||
117
+                    ($hasConnected && $lastOperationTime !== null) ||
118 118
                    !$hasConnected
119
-               ) &&
119
+                ) &&
120 120
                ($microTime - $lastOperationTime >= $desiredTimeout)
121
-               ;
121
+                ;
122 122
     }
123 123
 }
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/DisconnectStage.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -136,13 +136,13 @@
 block discarded – undo
136 136
     private function isDisconnectRequired(SocketInterface $socket)
137 137
     {
138 138
         return (
139
-                   ($socket instanceof PersistentClientSocket) &&
139
+                    ($socket instanceof PersistentClientSocket) &&
140 140
                    (
141
-                       feof($socket->getStreamResource()) !== false ||
141
+                        feof($socket->getStreamResource()) !== false ||
142 142
                        !stream_socket_get_name($socket->getStreamResource(), true)
143
-                   )
144
-               ) || (
145
-                   !($socket instanceof PersistentClientSocket)
146
-               );
143
+                    )
144
+                ) || (
145
+                    !($socket instanceof PersistentClientSocket)
146
+                );
147 147
     }
148 148
 }
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/GuardianStage.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,9 +123,9 @@
 block discarded – undo
123 123
         $operation = $descriptor->getOperation();
124 124
         return ($operation instanceof NullOperation) ||
125 125
                (
126
-                   $operation instanceof ReadOperation &&
126
+                    $operation instanceof ReadOperation &&
127 127
                    $operation->getFramePicker() instanceof EmptyFramePicker
128
-               );
128
+                );
129 129
     }
130 130
 
131 131
     /**
Please login to merge, or discard this patch.
src/Frame/MarkerFramePicker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
      * @param string $needle What to find
122 122
      * @param int    $offset Start offset in $haystack
123 123
      *
124
-     * @return bool|int
124
+     * @return string
125 125
      */
126 126
     protected function findMarker($haystack, $needle, $offset = 0)
127 127
     {
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/SelectStage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      * @param RequestDescriptor $operation Operation object
180 180
      * @param double            $microTime Current time with microseconds
181 181
      *
182
-     * @return double|null
182
+     * @return double
183 183
      */
184 184
     private function getSingleSocketTimeout(RequestDescriptor $operation, $microTime)
185 185
     {
Please login to merge, or discard this patch.