@@ -239,8 +239,8 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function removeAllSocketOperations(StreamResourceInterface $streamResource) |
241 | 241 | { |
242 | - $opList = [ OperationInterface::OPERATION_READ, |
|
243 | - OperationInterface::OPERATION_WRITE ]; |
|
242 | + $opList = [OperationInterface::OPERATION_READ, |
|
243 | + OperationInterface::OPERATION_WRITE]; |
|
244 | 244 | |
245 | 245 | foreach ($opList as $op) { |
246 | 246 | $this->removeSocketOperation($streamResource, $op); |
@@ -281,8 +281,7 @@ discard block |
||
281 | 281 | */ |
282 | 282 | private function calculateAttemptsCount($seconds, $usec) |
283 | 283 | { |
284 | - return $seconds !== null ? ceil(($seconds * 1E6 + $usec) / self::ATTEMPT_DELAY) : |
|
285 | - self::ATTEMPT_COUNT_FOR_INFINITE_TIMEOUT; |
|
284 | + return $seconds !== null ? ceil(($seconds * 1E6 + $usec) / self::ATTEMPT_DELAY) : self::ATTEMPT_COUNT_FOR_INFINITE_TIMEOUT; |
|
286 | 285 | } |
287 | 286 | |
288 | 287 | /** |
@@ -104,7 +104,7 @@ |
||
104 | 104 | return new Event( |
105 | 105 | $this->executor, |
106 | 106 | $operation->getSocket(), |
107 | - $meta[ RequestExecutorInterface::META_USER_CONTEXT ], |
|
107 | + $meta[RequestExecutorInterface::META_USER_CONTEXT], |
|
108 | 108 | $eventName |
109 | 109 | ); |
110 | 110 | } |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $result = []; |
37 | 37 | foreach ($operations as $key => $item) { |
38 | 38 | $meta = $item->getMetadata(); |
39 | - $isActive = !$meta[ RequestExecutorInterface::META_REQUEST_COMPLETE ] && |
|
39 | + $isActive = !$meta[RequestExecutorInterface::META_REQUEST_COMPLETE] && |
|
40 | 40 | $item->isRunning() && |
41 | 41 | !$item->isPostponed(); |
42 | 42 |