Completed
Push — master ( 1defd2...50d640 )
by Iqbal
02:55
created
src/Response/JsonResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         try {
49 49
             $data = json_encode($data);
50
-        } catch(RuntimeException $exception) {
50
+        } catch (RuntimeException $exception) {
51 51
             throw new $exception;
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/ServerBag.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
         foreach ($this->parameters as $key => $value) {
28 28
             if (0 === strpos($key, 'HTTP_')) {
29 29
                 $headers[substr($key, 5)] = $value;
30
-            }
31
-            elseif (0 === strpos($key, 'CONTENT_')) {
30
+            } elseif (0 === strpos($key, 'CONTENT_')) {
32 31
                 $headers[$key] = $value;
33 32
             }
34 33
         }
Please login to merge, or discard this patch.
src/Session/Storage/SessionStorage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     public function clear()
209 209
     {
210 210
         // Clear all bags session.
211
-        foreach($this->bags as $bag) {
211
+        foreach ($this->bags as $bag) {
212 212
             $bag->clear();
213 213
         }
214 214
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             $sessions = &$_SESSION;
232 232
         }
233 233
 
234
-        foreach($this->bags as $bag) {
234
+        foreach ($this->bags as $bag) {
235 235
             $key = $bag->getStorageKey();
236 236
             $sessions[$key] = isset($sessions[$key]) ? $sessions[$key] : array();
237 237
             $bag->initialize($sessions[$key]);
Please login to merge, or discard this patch.
src/SetCookieHeaderBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
      */
171 171
     public function __toString()
172 172
     {
173
-        return implode("\r\n", array_map(function (SetCookieHeader $cookie) {
173
+        return implode("\r\n", array_map(function(SetCookieHeader $cookie) {
174 174
             return (string) $cookie;
175 175
         }, $this->cookies));
176 176
     }
Please login to merge, or discard this patch.
src/UploadFileBag.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function replaceAcceptedMimeTypes(array $mimeTypes)
71 71
     {
72 72
         self::$acceptedMimeTypes->clear();
73
-        $this->walkIn(function (UploadedFile &$file) {
73
+        $this->walkIn(function(UploadedFile & $file) {
74 74
             $file->getAcceptedMimeType()->clear();
75 75
         });
76 76
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $mimeType = strtolower(trim($mimeType));
106 106
         self::$acceptedMimeTypes->set($mimeType);
107 107
 
108
-        $this->walkIn(function (UploadedFile &$file) use ($mimeType) {
108
+        $this->walkIn(function(UploadedFile & $file) use ($mimeType) {
109 109
             $file->getAcceptedMimeType()->set($mimeType);
110 110
         });
111 111
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     public function isValid()
164 164
     {
165 165
         try {
166
-            $this->walkIn(function (UploadedFile $file) {
166
+            $this->walkIn(function(UploadedFile $file) {
167 167
                 if (false === $file->isValid()) {
168 168
                     throw new \Exception;
169 169
                 }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     {
189 189
         $successes = array();
190 190
 
191
-        $this->walkIn(function (UploadedFile $file = null, $key, $parentKey = null) use (
191
+        $this->walkIn(function(UploadedFile $file = null, $key, $parentKey = null) use (
192 192
             &$successes,
193 193
             &$closure,
194 194
             &$lastKey
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      */
219 219
     public function move($directory)
220 220
     {
221
-        return $this->createDirectoryAndCall($directory, function (UploadedFile $file) use ($directory) {
221
+        return $this->createDirectoryAndCall($directory, function(UploadedFile $file) use ($directory) {
222 222
             return $file->move($directory);
223 223
         });
224 224
     }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
      */
235 235
     public function copy($directory)
236 236
     {
237
-        return $this->createDirectoryAndCall($directory, function (UploadedFile $file) use ($directory) {
237
+        return $this->createDirectoryAndCall($directory, function(UploadedFile $file) use ($directory) {
238 238
             return $file->copy($directory);
239 239
         });
240 240
     }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function deleteAll()
248 248
     {
249
-        $this->walkIn(function (UploadedFile $file) {
249
+        $this->walkIn(function(UploadedFile $file) {
250 250
             $file->remove();
251 251
         });
252 252
 
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     {
263 263
         $messages = array();
264 264
 
265
-        $this->walkIn(function (UploadedFile $file, $key, $parentKey = null) use (&$messages) {
265
+        $this->walkIn(function(UploadedFile $file, $key, $parentKey = null) use (&$messages) {
266 266
             $msg = $file->getErrorMessage();
267 267
 
268 268
             if (null !== $msg) {
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             return $this->executeInSafeMode($caller);
413 413
         }
414 414
 
415
-        throw new RuntimeException(implode(".\n", array_map(function ($message) {
415
+        throw new RuntimeException(implode(".\n", array_map(function($message) {
416 416
             if (is_array($message)) {
417 417
                 return implode(".\n", $message);
418 418
             }
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     {
433 433
         $me = $this;
434 434
 
435
-        array_walk($data, function ($file, $key) use (&$callback, &$me, $parentKey) {
435
+        array_walk($data, function($file, $key) use (&$callback, &$me, $parentKey) {
436 436
             if (is_array($file)) {
437 437
                 $me->walkInRecursively($callback, $file, is_int($key) ? $parentKey : $key);
438 438
             }
Please login to merge, or discard this patch.
src/Uri.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,8 +197,7 @@
 block discarded – undo
197 197
             $uri = $this->getUri();
198 198
             if (empty($uri)) {
199 199
                 $this->basePath = '';
200
-            }
201
-            else {
200
+            } else {
202 201
                 if (basename($this->getUri()) === basename($this->server->get('SCRIPT_NAME'))) {
203 202
                     $basePath = dirname($this->getUri());
204 203
                 } else {
Please login to merge, or discard this patch.