Test Failed
Branch main (612a9e)
by Muhammad Umer
11:32
created
src/http/Response.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         }
40 40
 
41 41
         $this->setVersion($config['version'])
42
-             ->withStatus($config['code']);
42
+                ->withStatus($config['code']);
43 43
 
44 44
         if (!isset($config['reasonPhrase'])) {
45 45
             $config['reasonPhrase'] = self::$responseCodes[$config['code']];
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         }
53 53
 
54 54
         $this->setReasonPhrase($config['reasonPhrase'])
55
-             ->setHeaders($config['headers'])
56
-             ->setBody($config['body']);
55
+                ->setHeaders($config['headers'])
56
+                ->setBody($config['body']);
57 57
     }
58 58
 
59 59
     /**
Please login to merge, or discard this patch.
src/Router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@
 block discarded – undo
494 494
                 $controller = $this->convertToStudlyCaps($controller);
495 495
                 $controller = $this->getNamespace().$controller;
496 496
                 if (class_exists($controller)) {
497
-                    (isset($this->params['middleware']) && is_object($this->params['middleware'])) ? ( new $this->params['middleware']())->before(new Request(), new Response(), $this->params) : null;
497
+                    (isset($this->params['middleware']) && is_object($this->params['middleware'])) ? (new $this->params['middleware']())->before(new Request(), new Response(), $this->params) : null;
498 498
                     $controller_object = new $controller($this->params, $this->getInput(new Input()));
499 499
                     $action = $this->params['action'];
500 500
                     $action = $this->convertToCamelCase($action);
Please login to merge, or discard this patch.
src/Component/Component.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 $controller = $this->convertToStudlyCaps($controller);
50 50
                 $controller = $this->getNamespace().$controller;
51 51
                 if (class_exists($controller)) {
52
-                    (isset($this->params['middleware']) && is_object($this->params['middleware'])) ? ( new $this->params['middleware']())->before(new Request(), new Response(), $this->params) : null;
52
+                    (isset($this->params['middleware']) && is_object($this->params['middleware'])) ? (new $this->params['middleware']())->before(new Request(), new Response(), $this->params) : null;
53 53
                     $controller_object = new $controller($this->params, $this->getInput(new Input()));
54 54
                     $action = $this->params['action'];
55 55
                     $action = $this->convertToCamelCase($action);
Please login to merge, or discard this patch.
src/Data/Arrays.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      */
491 491
     public static function arrayChangeCaseKey($array, $case = CASE_LOWER)
492 492
     {
493
-        return array_map(function ($item) use ($case) {
493
+        return array_map(function($item) use ($case) {
494 494
             if (is_array($item)) {
495 495
                 $item = self::arrayChangeCaseKey($item, $case);
496 496
             }
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
     {
734 734
         if (self::isMulti($array)) {
735 735
             $dataSet = [];
736
-            array_walk_recursive($array, function ($value, $k) use (&$dataSet, $key) {
736
+            array_walk_recursive($array, function($value, $k) use (&$dataSet, $key) {
737 737
                 if ($k == $key) {
738 738
                     $dataSet[] = $value;
739 739
                 }
Please login to merge, or discard this patch.
src/Common/OperatingSystem.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             default:
66 66
                 $c_os = 'Unknown';
67 67
                 break;
68
-         }
68
+            }
69 69
 
70 70
         return $c_os;
71 71
     }
Please login to merge, or discard this patch.
src/Console/Commands.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
     protected $commands = [
31 31
         ['version', \alphaz\Console\Commands\Version::class],
32 32
         ['list', \alphaz\Console\Commands\ListCmd::class],
33
-        ['make:controller',  \alphaz\Console\Commands\Controller::class],
33
+        ['make:controller', \alphaz\Console\Commands\Controller::class],
34 34
         ['clear:cache', \alphaz\Console\Commands\Cache::class],
35 35
         ['serve', \alphaz\Console\Commands\ServeCommand::class],
36 36
 
Please login to merge, or discard this patch.
Tests/Data/ArraysTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
298 298
     public function testWhere()
299 299
     {
300 300
         $array = [100, '200', 300, '400', 500];
301
-        $array = Arrays::where($array, function ($value, $key) {
301
+        $array = Arrays::where($array, function($value, $key) {
302 302
             return is_string($value);
303 303
         });
304 304
         $this->assertEquals([1 => '200', 3 => '400'], $array);
Please login to merge, or discard this patch.