@@ -39,7 +39,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -494,7 +494,7 @@ |
||
| 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); |
@@ -490,7 +490,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -30,7 +30,7 @@ |
||
| 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 | |
@@ -298,7 +298,7 @@ |
||
| 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); |
@@ -494,7 +494,7 @@ |
||
| 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); |