Completed
Push — master ( e57dc9...542683 )
by John
7s
created
src/Cache/CacheAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,11 +181,11 @@
 block discarded – undo
181 181
             $segments[] = '?' . $query;
182 182
         }
183 183
 
184
-        array_walk($segments, function (&$value) {
184
+        array_walk($segments, function(&$value) {
185 185
             $value = preg_replace('/[^[:print:]]/', '_', $value);
186 186
         });
187 187
 
188
-        return array_filter($segments, function ($value) {
188
+        return array_filter($segments, function($value) {
189 189
             return $value !== '';
190 190
         });
191 191
     }
Please login to merge, or discard this patch.
src/Tests/EventListener/RequestListenerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->eventMock
64 64
             ->expects($this->once())
65 65
             ->method('setResponse')
66
-            ->with($this->callback(function (Response $response) {
66
+            ->with($this->callback(function(Response $response) {
67 67
                 return $response->getStatusCode() === Response::HTTP_METHOD_NOT_ALLOWED;
68 68
             }));
69 69
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $this->eventMock
83 83
             ->expects($this->once())
84 84
             ->method('setResponse')
85
-            ->with($this->callback(function (Response $response) {
85
+            ->with($this->callback(function(Response $response) {
86 86
                 return $response->getStatusCode() === Response::HTTP_NOT_MODIFIED;
87 87
             }));
88 88
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $this->eventMock
133 133
             ->expects($this->once())
134 134
             ->method('setResponse')
135
-            ->with($this->callback(function (Response $response) {
135
+            ->with($this->callback(function(Response $response) {
136 136
                 return $response->getStatusCode() === Response::HTTP_PRECONDITION_REQUIRED;
137 137
             }));
138 138
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         $this->eventMock
153 153
             ->expects($this->once())
154 154
             ->method('setResponse')
155
-            ->with($this->callback(function (Response $response) {
155
+            ->with($this->callback(function(Response $response) {
156 156
                 return $response->getStatusCode() === Response::HTTP_PRECONDITION_FAILED;
157 157
             }));
158 158
 
Please login to merge, or discard this patch.