Completed
Push — master ( c97103...9edfc5 )
by Evgenij
03:08
created
src/RequestExecutor/Pipeline/ConnectStage.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
             } elseif ($decision === LimitationSolverInterface::DECISION_SKIP_CURRENT) {
60 60
                 continue;
61 61
             } elseif ($decision !== LimitationSolverInterface::DECISION_OK) {
62
-                throw new \LogicException('Unknown decision ' . $decision . ' received.');
62
+                throw new \LogicException('Unknown decision '.$decision.' received.');
63 63
             }
64 64
 
65 65
             if ($this->connectSocket($descriptor)) {
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
             if (!$socket->isConnected()) {
126 126
                 $meta = $descriptor->getMetadata();
127 127
                 $socket->open(
128
-                    $meta[ RequestExecutorInterface::META_ADDRESS ],
129
-                    $meta[ RequestExecutorInterface::META_SOCKET_STREAM_CONTEXT]
128
+                    $meta[RequestExecutorInterface::META_ADDRESS],
129
+                    $meta[RequestExecutorInterface::META_SOCKET_STREAM_CONTEXT]
130 130
                 );
131 131
             } else {
132 132
                 $this->setSocketOperationTime($descriptor, RequestExecutorInterface::META_CONNECTION_FINISH_TIME);
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/TimeoutStage.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function processStage(array $requestDescriptors)
24 24
     {
25 25
         /** @var RequestDescriptor[] $requestDescriptors */
26
-        $result    = [ ];
26
+        $result    = [];
27 27
         $microTime = microtime(true);
28 28
         foreach ($requestDescriptors as $key => $descriptor) {
29 29
             $isTimeout = $this->isSingleSocketTimeout($descriptor, $microTime) &&
@@ -52,8 +52,7 @@  discard block
 block discarded – undo
52 52
             $meta[RequestExecutorInterface::META_USER_CONTEXT],
53 53
             $meta[RequestExecutorInterface::META_CONNECTION_FINISH_TIME] !== null &&
54 54
             !$descriptor->getSocket()->isServer() ?
55
-                TimeoutEvent::DURING_IO :
56
-                TimeoutEvent::DURING_CONNECTION
55
+                TimeoutEvent::DURING_IO : TimeoutEvent::DURING_CONNECTION
57 56
         );
58 57
         try {
59 58
             $this->callSocketSubscribers($descriptor, $event);
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/ConnectStageReturningAllActiveSockets.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     private function isDescriptorActive(RequestDescriptor $descriptor)
54 54
     {
55 55
         $meta = $descriptor->getMetadata();
56
-        return !$meta[ RequestExecutorInterface::META_REQUEST_COMPLETE ] &&
56
+        return !$meta[RequestExecutorInterface::META_REQUEST_COMPLETE] &&
57 57
                     $descriptor->isRunning() &&
58 58
                     !$descriptor->isForgotten();
59 59
     }
Please login to merge, or discard this patch.
src/Socket/ServerSocket.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,9 +85,8 @@
 block discarded – undo
85 85
             'udg' => 1,
86 86
         ];
87 87
 
88
-        return isset($connectionLessMap[ $scheme ]) ?
89
-            STREAM_SERVER_BIND :
90
-            STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
88
+        return isset($connectionLessMap[$scheme]) ?
89
+            STREAM_SERVER_BIND : STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;
91 90
     }
92 91
 
93 92
     /**
Please login to merge, or discard this patch.