Completed
Push — master ( e22f7e...4537c6 )
by Evgenij
06:03
created
src/RequestExecutor/Pipeline/GuardianStage.php 2 patches
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.
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/RequestExecutor/Pipeline/ExcludedOperationsStage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         foreach ($requestDescriptors as $key => $descriptor) {
48 48
             if (in_array($descriptor, $currentOperations, true)) {
49
-                unset($requestDescriptors[ $key]);
49
+                unset($requestDescriptors[$key]);
50 50
             }
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/IoStage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             }
87 87
         }
88 88
 
89
-        throw new \LogicException('There is no handler able to process ' . get_class($operation) . ' operation.');
89
+        throw new \LogicException('There is no handler able to process '.get_class($operation).' operation.');
90 90
     }
91 91
 
92 92
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     private function setConnectionFinishTime(RequestDescriptor $requestDescriptor)
158 158
     {
159 159
         $meta         = $requestDescriptor->getMetadata();
160
-        $wasConnected = $meta[ RequestExecutorInterface::META_CONNECTION_FINISH_TIME ] !== null;
160
+        $wasConnected = $meta[RequestExecutorInterface::META_CONNECTION_FINISH_TIME] !== null;
161 161
         $this->setSocketOperationTime($requestDescriptor, RequestExecutorInterface::META_CONNECTION_FINISH_TIME);
162 162
         if (!$wasConnected) {
163 163
             $event = $this->createEvent($requestDescriptor, EventType::CONNECTED);
Please login to merge, or discard this patch.
src/Operation/WriteOperation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function __construct($data = null, $isOutOfBand = false)
38 38
     {
39
-        $this->data         = $data !== null ? (string) $data : null;
39
+        $this->data = $data !== null ? (string) $data : null;
40 40
         $this->isOutOfBand = $isOutOfBand;
41 41
     }
42 42
 
Please login to merge, or discard this patch.
src/Exception/UnmanagedSocketException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             $socket,
31 31
             sprintf(
32 32
                 'System has detected a zombie connection %s and closed it. '.
33
-                'If you see this message it means that application ' .
33
+                'If you see this message it means that application '.
34 34
                 'has lost control on one of its sockets.',
35 35
                 (string) $socket
36 36
             )
Please login to merge, or discard this patch.
src/Socket/AsyncSocketFactory.php 1 patch
Spacing   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -74,19 +74,17 @@
 block discarded – undo
74 74
     {
75 75
         switch ($type) {
76 76
             case self::SOCKET_CLIENT:
77
-                $isPersistent  = isset($options[ self::SOCKET_OPTION_IS_PERSISTENT ]) &&
78
-                                 $options[ self::SOCKET_OPTION_IS_PERSISTENT ];
79
-                $persistentKey = isset($options[ self::SOCKET_OPTION_PERSISTENT_KEY ]) ?
80
-                    $options[ self::SOCKET_OPTION_PERSISTENT_KEY ] :
81
-                    null;
77
+                $isPersistent  = isset($options[self::SOCKET_OPTION_IS_PERSISTENT]) &&
78
+                                 $options[self::SOCKET_OPTION_IS_PERSISTENT];
79
+                $persistentKey = isset($options[self::SOCKET_OPTION_PERSISTENT_KEY]) ?
80
+                    $options[self::SOCKET_OPTION_PERSISTENT_KEY] : null;
82 81
 
83 82
                 return $isPersistent ?
84
-                    new PersistentClientSocket($persistentKey) :
85
-                    new ClientSocket();
83
+                    new PersistentClientSocket($persistentKey) : new ClientSocket();
86 84
             case self::SOCKET_SERVER:
87 85
                 return new ServerSocket();
88 86
             default:
89
-                throw new \InvalidArgumentException("Unexpected type {$type} used in " . __FUNCTION__);
87
+                throw new \InvalidArgumentException("Unexpected type {$type} used in ".__FUNCTION__);
90 88
         }
91 89
     }
92 90
 
Please login to merge, or discard this patch.
src/Socket/PersistentClientSocket.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     protected function createSocketResource($address, $context)
41 41
     {
42 42
         $resource = stream_socket_client(
43
-            $address . ($this->persistentKey ? '/' . $this->persistentKey : ''),
43
+            $address.($this->persistentKey ? '/'.$this->persistentKey : ''),
44 44
             $errno,
45 45
             $errstr,
46 46
             null,
Please login to merge, or discard this patch.
src/Socket/Io/DatagramClientIo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         parent::__construct($socket, 0);
36 36
         if ($remoteAddress) {
37 37
             $components = parse_url($remoteAddress);
38
-            $this->remoteAddress = $components['host'] . ':' . $components['port'];
38
+            $this->remoteAddress = $components['host'].':'.$components['port'];
39 39
         }
40 40
     }
41 41
 
Please login to merge, or discard this patch.
src/RequestExecutor/LibEvent/LeBase.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -211,9 +211,9 @@
 block discarded – undo
211 211
     private function onEvent(LeEvent $event, $eventFlags)
212 212
     {
213 213
         $map = [
214
-            LeCallbackInterface::EVENT_READ    => [ EV_READ, RequestDescriptor::RDS_READ ],
215
-            LeCallbackInterface::EVENT_WRITE   => [ EV_WRITE, RequestDescriptor::RDS_WRITE ],
216
-            LeCallbackInterface::EVENT_TIMEOUT => [ EV_TIMEOUT, 0 ],
214
+            LeCallbackInterface::EVENT_READ    => [EV_READ, RequestDescriptor::RDS_READ],
215
+            LeCallbackInterface::EVENT_WRITE   => [EV_WRITE, RequestDescriptor::RDS_WRITE],
216
+            LeCallbackInterface::EVENT_TIMEOUT => [EV_TIMEOUT, 0],
217 217
         ];
218 218
 
219 219
         $descriptor = $event->getRequestDescriptor();
Please login to merge, or discard this patch.