@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | public function map(Router $router) |
| 39 | 39 | { |
| 40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 40 | + $router->group([ 'namespace' => $this->namespace ], function($router) { |
|
| 41 | 41 | require app_path('Http/routes.php'); |
| 42 | 42 | }); |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function __construct() |
| 39 | 39 | { |
| 40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
| 40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | protected function create(array $data) |
| 65 | 65 | { |
| 66 | 66 | return User::create([ |
| 67 | - 'name' => $data['name'], |
|
| 68 | - 'email' => $data['email'], |
|
| 69 | - 'password' => bcrypt($data['password']), |
|
| 67 | + 'name' => $data[ 'name' ], |
|
| 68 | + 'email' => $data[ 'email' ], |
|
| 69 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 70 | 70 | ]); |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 15 | - return ['ok']; |
|
| 14 | +Route::get('/', function() { |
|
| 15 | + return [ 'ok' ]; |
|
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | /* |
@@ -26,6 +26,6 @@ discard block |
||
| 26 | 26 | | |
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | -Route::group(['middleware' => ['web']], function () { |
|
| 29 | +Route::group([ 'middleware' => [ 'web' ] ], function() { |
|
| 30 | 30 | // |
| 31 | 31 | }); |