Completed
Push — master ( 95ea2a...2fea48 )
by Evgenij
02:43
created
src/RequestExecutor/LibEventRequestExecutor.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     protected function initializeRequest(EventCaller $eventCaller)
105 105
     {
106 106
         parent::initializeRequest($eventCaller);
107
-        $this->base        = new LeBase();
107
+        $this->base = new LeBase();
108 108
 
109 109
         $this->connectStage    = $this->stageFactory->createConnectStage($this, $eventCaller, $this->solver);
110 110
         $this->ioStage         = $this->stageFactory->createIoStage($this, $eventCaller);
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     protected function terminateRequest()
118 118
     {
119 119
         parent::terminateRequest();
120
-        $this->base        = null;
120
+        $this->base = null;
121 121
 
122 122
         $this->connectStage    = null;
123 123
         $this->ioStage         = null;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             case LeCallbackInterface::EVENT_READ:
169 169
                 // fall down
170 170
             case LeCallbackInterface::EVENT_WRITE:
171
-                $result       = $this->ioStage->processStage([ $requestDescriptor ]);
171
+                $result       = $this->ioStage->processStage([$requestDescriptor]);
172 172
                 $doResetEvent = empty($result);
173 173
 
174 174
                 break;
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/TimeoutStage.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\RequestExecutor\Pipeline;
11 11
 
12 12
 use AsyncSockets\Event\TimeoutEvent;
@@ -114,10 +114,10 @@  discard block
 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/GuardianStage.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\RequestExecutor\Pipeline;
11 11
 
12 12
 use AsyncSockets\Event\DataAlertEvent;
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
         $operation = $descriptor->getOperation();
120 120
         return ($operation instanceof NullOperation) ||
121 121
                (
122
-                   $operation instanceof ReadOperation &&
122
+                    $operation instanceof ReadOperation &&
123 123
                    $operation->getFramePicker() instanceof EmptyFramePicker
124
-               );
124
+                );
125 125
     }
126 126
 
127 127
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      */
116 116
     private function isZombieCandidate(RequestDescriptor $descriptor)
117 117
     {
118
-        $metadata  = $descriptor->getMetadata();
118
+        $metadata = $descriptor->getMetadata();
119 119
         if ($metadata[RequestExecutorInterface::META_REQUEST_COMPLETE]) {
120 120
             return false;
121 121
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $event  = new DataAlertEvent(
165 165
             $this->executor,
166 166
             $socket,
167
-            $meta[ RequestExecutorInterface::META_USER_CONTEXT ],
167
+            $meta[RequestExecutorInterface::META_USER_CONTEXT],
168 168
             $attempt,
169 169
             $totalAttempts
170 170
         );
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/DisconnectStage.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\RequestExecutor\Pipeline;
11 11
 
12 12
 use AsyncSockets\Event\EventType;
@@ -136,13 +136,13 @@  discard block
 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/Socket/UdpClientSocket.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.
src/Socket/AsyncSelector.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.
src/Socket/SelectContext.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.
src/Socket/ServerSocket.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.
src/Socket/AsyncSocketFactory.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Async sockets
4
- *
5
- * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
- *
7
- * This source file is subject to the MIT license that is bundled
8
- * with this source code in the file LICENSE.
9
- */
3
+     * Async sockets
4
+     *
5
+     * @copyright Copyright (c) 2015-2016, Efimov Evgenij <[email protected]>
6
+     *
7
+     * This source file is subject to the MIT license that is bundled
8
+     * with this source code in the file LICENSE.
9
+     */
10 10
 namespace AsyncSockets\Socket;
11 11
 
12 12
 use AsyncSockets\Frame\FramePickerInterface;
Please login to merge, or discard this patch.