@@ -56,7 +56,7 @@ |
||
| 56 | 56 | protected function unauthenticated($request, AuthenticationException $exception) |
| 57 | 57 | { |
| 58 | 58 | if ($request->expectsJson()) { |
| 59 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
| 59 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | return redirect()->guest('login'); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | Route::group([ |
| 55 | 55 | 'middleware' => 'web', |
| 56 | 56 | 'namespace' => $this->namespace, |
| 57 | - ], function ($router) { |
|
| 57 | + ], function($router) { |
|
| 58 | 58 | require base_path('routes/web.php'); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -69,10 +69,10 @@ discard block |
||
| 69 | 69 | protected function mapApiRoutes() |
| 70 | 70 | { |
| 71 | 71 | Route::group([ |
| 72 | - 'middleware' => ['api', 'auth:api'], |
|
| 72 | + 'middleware' => [ 'api', 'auth:api' ], |
|
| 73 | 73 | 'namespace' => $this->namespace, |
| 74 | 74 | 'prefix' => 'api', |
| 75 | - ], function ($router) { |
|
| 75 | + ], function($router) { |
|
| 76 | 76 | require base_path('routes/api.php'); |
| 77 | 77 | }); |
| 78 | 78 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /* |
| 20 | 20 | * Authenticate the user's personal channel... |
| 21 | 21 | */ |
| 22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
| 22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
| 23 | 23 | return (int) $user->id === (int) $userId; |
| 24 | 24 | }); |
| 25 | 25 | } |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function __construct() |
| 36 | 36 | { |
| 37 | - $this->middleware('guest', ['except' => 'logout']); |
|
| 37 | + $this->middleware('guest', [ 'except' => 'logout' ]); |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -63,9 +63,9 @@ |
||
| 63 | 63 | protected function create(array $data) |
| 64 | 64 | { |
| 65 | 65 | return User::create([ |
| 66 | - 'name' => $data['name'], |
|
| 67 | - 'email' => $data['email'], |
|
| 68 | - 'password' => bcrypt($data['password']), |
|
| 66 | + 'name' => $data[ 'name' ], |
|
| 67 | + 'email' => $data[ 'email' ], |
|
| 68 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 69 | 69 | ]); |
| 70 | 70 | } |
| 71 | 71 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | public function __construct(array $scores) |
| 21 | 21 | { |
| 22 | - $this->differentialArray = [0,1,1,1,1,1,1,2,2,3,3,4,4,5,5,6,6,7,8,9,10]; |
|
| 22 | + $this->differentialArray = [ 0, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 9, 10 ]; |
|
| 23 | 23 | $this->scores = $scores; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -31,6 +31,6 @@ discard block |
||
| 31 | 31 | public function getDifferential() |
| 32 | 32 | { |
| 33 | 33 | $numberOfScores = count($this->scores); |
| 34 | - return $this->differentialArray[$numberOfScores]; |
|
| 34 | + return $this->differentialArray[ $numberOfScores ]; |
|
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | \ No newline at end of file |