Passed
Pull Request — master (#45)
by Arman
03:29
created
src/Hooks/HookDefaults.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,9 +82,9 @@
 block discarded – undo
82 82
     public static function updateDebuggerStore(array $data)
83 83
     {
84 84
         $currentRoute = RouteController::getCurrentRoute();
85
-        $routeInfo  = [];
85
+        $routeInfo = [];
86 86
 
87
-        array_walk($currentRoute, function ($value, $key) use (&$routeInfo) {
87
+        array_walk($currentRoute, function($value, $key) use (&$routeInfo) {
88 88
             $routeInfo[ucfirst($key)] = !is_array($value) ?: implode(',', $value);
89 89
         });
90 90
 
Please login to merge, or discard this patch.
src/Http/Request/Params.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
             'size' => $fs->size($tempName),
235 235
         ]);
236 236
 
237
-        register_shutdown_function(function () use ($fs, $tempName) {
237
+        register_shutdown_function(function() use ($fs, $tempName) {
238 238
             $fs->remove($tempName);
239 239
         });
240 240
 
Please login to merge, or discard this patch.
src/Http/Request/HttpRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         self::$__query = self::$server->query();
86 86
 
87
-        self::$__headers = array_change_key_case((array)getallheaders(), CASE_LOWER);
87
+        self::$__headers = array_change_key_case((array) getallheaders(), CASE_LOWER);
88 88
 
89 89
         list('params' => $params, 'files' => $files) = self::parsedParams();
90 90
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         $csrfToken = null;
228 228
 
229 229
         if (self::has('token')) {
230
-            $csrfToken = (string)self::get('token');
230
+            $csrfToken = (string) self::get('token');
231 231
         } elseif (self::hasHeader('X-csrf-token')) {
232 232
             $csrfToken = self::getHeader('X-csrf-token');
233 233
         }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     {
244 244
         $bearerToken = null;
245 245
 
246
-        $authorization = (string)self::getHeader('Authorization');
246
+        $authorization = (string) self::getHeader('Authorization');
247 247
 
248 248
         if (self::hasHeader('Authorization')) {
249 249
             if (preg_match('/Bearer\s(\S+)/', $authorization, $matches)) {
Please login to merge, or discard this patch.