Completed
Push — master ( 8aa208...baffd9 )
by Kamil
05:01 queued 03:34
created
src/Http/Socket/SocketServer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $this->socket = $socket;
34 34
         $this->component = $component === null ? new NullServer() : $component;
35 35
 
36
-        $socket->on('connect', [ $this, 'handleConnect' ]);
36
+        $socket->on('connect', [$this, 'handleConnect']);
37 37
     }
38 38
 
39 39
     /**
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         {
96 96
             $this->component->handleConnect($socket->conn);
97 97
 
98
-            $socket->on('data',  [ $this, 'handleData' ]);
99
-            $socket->on('error', [ $this, 'handleError' ]);
100
-            $socket->on('close', [ $this, 'handleDisconnect' ]);
98
+            $socket->on('data', [$this, 'handleData']);
99
+            $socket->on('error', [$this, 'handleError']);
100
+            $socket->on('close', [$this, 'handleDisconnect']);
101 101
         }
102 102
         catch (Error $ex)
103 103
         {
Please login to merge, or discard this patch.
src/Http/Http/Component/Router/HttpRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,8 @@
 block discarded – undo
153 153
             $path,
154 154
             new Route(
155 155
                 $path,
156
-                [ '_controller' => $component ],
157
-                $this->checkOrigin ? [ 'Origin' => $this->host ] : [],
156
+                ['_controller' => $component],
157
+                $this->checkOrigin ? ['Origin' => $this->host] : [],
158 158
                 [],
159 159
                 $this->checkOrigin ? $this->host : ''
160 160
             )
Please login to merge, or discard this patch.
src/Http/Http/HttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     {
80 80
         return preg_replace_callback(
81 81
             '/(?:[^A-Za-z0-9_\-\.~!\$&\'\(\)\[\]\*\+,:;=\/% ]+|%(?![A-Fa-f0-9]{2}))/',
82
-            function (array $matches) {
82
+            function(array $matches) {
83 83
                 return rawurlencode($matches[0]);
84 84
             },
85 85
             $header
Please login to merge, or discard this patch.
src/Http/NetworkConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      */
83 83
     public function send($data)
84 84
     {
85
-        $this->conn->write((string)$data);
85
+        $this->conn->write((string) $data);
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
src/Http/Http/HttpRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     {
80 80
         return preg_replace_callback(
81 81
             '/(?:[^A-Za-z0-9_\-\.~!\$&\'\(\)\[\]\*\+,:;=\/% ]+|%(?![A-Fa-f0-9]{2}))/',
82
-            function (array $matches) {
82
+            function(array $matches) {
83 83
                 return rawurlencode($matches[0]);
84 84
             },
85 85
             $header
Please login to merge, or discard this patch.