@@ -11,6 +11,6 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::get('/', function () { |
|
14 | +Route::get('/', function() { |
|
15 | 15 | return view('welcome'); |
16 | 16 | }); |
@@ -13,6 +13,6 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Artisan::command('inspire', function () { |
|
16 | +Artisan::command('inspire', function() { |
|
17 | 17 | $this->comment(Inspiring::quote()); |
18 | 18 | })->describe('Display an inspiring quote'); |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | $api = app(Router::class); |
18 | 18 | |
19 | 19 | // Create a Dingo Version Group |
20 | -$api->version('v1', ['middleware' => 'api'], function ($api) { |
|
21 | - $api->group(['prefix' => 'auth'], function ($api) { |
|
20 | +$api->version('v1', [ 'middleware' => 'api' ], function($api) { |
|
21 | + $api->group([ 'prefix' => 'auth' ], function($api) { |
|
22 | 22 | $api->post('register', [ |
23 | 23 | 'as' => 'register', |
24 | 24 | 'uses' => 'App\\Api\\V1\\Controllers\\RegisterController@register', |
@@ -42,14 +42,14 @@ discard block |
||
42 | 42 | $api->post('reset', 'App\\Api\\V1\\Controllers\\ResetPasswordController@resetPassword'); |
43 | 43 | $api->get('reset/{token}', [ |
44 | 44 | 'as' => 'password.reset', |
45 | - function () { |
|
45 | + function() { |
|
46 | 46 | }, |
47 | 47 | ]); |
48 | 48 | }); |
49 | 49 | |
50 | 50 | // Protected routes |
51 | - $api->group(['middleware' => 'auth:api'], function ($api) { |
|
52 | - $api->get('protected', function () { |
|
51 | + $api->group([ 'middleware' => 'auth:api' ], function($api) { |
|
52 | + $api->get('protected', function() { |
|
53 | 53 | return response()->json([ |
54 | 54 | 'message' => 'Access to protected resources granted! You are seeing this text as you provided the token correctly.', |
55 | 55 | ]); |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @author Taylor Otwell <[email protected]> |
7 | 7 | */ |
8 | 8 | $uri = urldecode( |
9 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
9 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
10 | 10 | ); |
11 | 11 | |
12 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -116,5 +116,5 @@ |
||
116 | 116 | | |
117 | 117 | */ |
118 | 118 | |
119 | - 'attributes' => [], |
|
119 | + 'attributes' => [ ], |
|
120 | 120 | ]; |
@@ -12,10 +12,10 @@ |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | 'supportsCredentials' => false, |
15 | - 'allowedOrigins' => ['*'], |
|
16 | - 'allowedOriginsPatterns' => [], |
|
17 | - 'allowedHeaders' => ['*'], |
|
18 | - 'allowedMethods' => ['*'], |
|
19 | - 'exposedHeaders' => [], |
|
15 | + 'allowedOrigins' => [ '*' ], |
|
16 | + 'allowedOriginsPatterns' => [ ], |
|
17 | + 'allowedHeaders' => [ '*' ], |
|
18 | + 'allowedMethods' => [ '*' ], |
|
19 | + 'exposedHeaders' => [ ], |
|
20 | 20 | 'maxAge' => 0, |
21 | 21 | ]; |
@@ -108,7 +108,7 @@ |
||
108 | 108 | | |
109 | 109 | */ |
110 | 110 | |
111 | - 'lottery' => [2, 100], |
|
111 | + 'lottery' => [ 2, 100 ], |
|
112 | 112 | |
113 | 113 | /* |
114 | 114 | |-------------------------------------------------------------------------- |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'channels' => [ |
32 | 32 | 'stack' => [ |
33 | 33 | 'driver' => 'stack', |
34 | - 'channels' => ['single'], |
|
34 | + 'channels' => [ 'single' ], |
|
35 | 35 | ], |
36 | 36 | |
37 | 37 | 'single' => [ |
@@ -15,11 +15,11 @@ |
||
15 | 15 | */ |
16 | 16 | public function logout() |
17 | 17 | { |
18 | - if (! Auth::user()->token()->revoke()) { |
|
18 | + if (!Auth::user()->token()->revoke()) { |
|
19 | 19 | throw new HttpException(500); |
20 | 20 | } |
21 | 21 | |
22 | 22 | return response() |
23 | - ->json(['message' => 'Successfully logged out']); |
|
23 | + ->json([ 'message' => 'Successfully logged out' ]); |
|
24 | 24 | } |
25 | 25 | } |