@@ -114,10 +114,10 @@ |
||
| 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 | } |
@@ -123,9 +123,9 @@ |
||
| 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 | /** |
@@ -121,7 +121,7 @@ |
||
| 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 | { |
@@ -179,7 +179,7 @@ |
||
| 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 | { |