@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register() |
28 | 28 | { |
29 | - $this->app->bind(EncoderInterface::class, function () { |
|
29 | + $this->app->bind(EncoderInterface::class, function() { |
|
30 | 30 | return Encoder::instance( |
31 | 31 | config('jsonapi.schemas'), |
32 | 32 | new EncoderOptions(0, config('app.url')) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | $accept = $request->header('accept', '*/*'); |
29 | 29 | |
30 | - if (!in_array($accept, ['*/*', self::JSONAPI_CONTENT_TYPE])) { |
|
30 | + if (!in_array($accept, [ '*/*', self::JSONAPI_CONTENT_TYPE ])) { |
|
31 | 31 | return response(null, Response::HTTP_NOT_ACCEPTABLE); |
32 | 32 | } |
33 | 33 |
@@ -8,6 +8,6 @@ |
||
8 | 8 | { |
9 | 9 | public function index() |
10 | 10 | { |
11 | - return response()->json(['ok']); |
|
11 | + return response()->json([ 'ok' ]); |
|
12 | 12 | } |
13 | 13 | } |
@@ -10,17 +10,17 @@ discard block |
||
10 | 10 | | and give it the controller to call when that URI is requested. |
11 | 11 | | |
12 | 12 | */ |
13 | -Route::group(['namespace' => 'V1', 'prefix' => 'v1', 'middleware' => 'api'], function () { |
|
13 | +Route::group([ 'namespace' => 'V1', 'prefix' => 'v1', 'middleware' => 'api' ], function() { |
|
14 | 14 | // Route::get('puppy', 'PuppyController@index'); |
15 | 15 | }); |
16 | 16 | |
17 | 17 | |
18 | -Route::group(['middleware' => \App\Http\Middleware\SpeakJson::class], function () { |
|
18 | +Route::group([ 'middleware' => \App\Http\Middleware\SpeakJson::class ], function() { |
|
19 | 19 | Route::post('v1/token', 'V1\TokenController@store'); |
20 | 20 | }); |
21 | 21 | |
22 | -Route::get('/', function () { |
|
23 | - return ['name' => 'improv.ee api', 'documentation' => 'https://github.com/improv-ee/api']; |
|
22 | +Route::get('/', function() { |
|
23 | + return [ 'name' => 'improv.ee api', 'documentation' => 'https://github.com/improv-ee/api' ]; |
|
24 | 24 | }); |
25 | 25 | |
26 | 26 | /* |
@@ -34,6 +34,6 @@ discard block |
||
34 | 34 | | |
35 | 35 | */ |
36 | 36 | |
37 | -Route::group(['middleware' => ['web']], function () { |
|
37 | +Route::group([ 'middleware' => [ 'web' ] ], function() { |
|
38 | 38 | // |
39 | 39 | }); |
@@ -20,6 +20,6 @@ |
||
20 | 20 | 'password' => Hash::make('letmein') |
21 | 21 | ]); |
22 | 22 | } |
23 | - User::create(['name' => 'ando', 'email' => '[email protected]', 'password' => Hash::make('letmein')]); |
|
23 | + User::create([ 'name' => 'ando', 'email' => '[email protected]', 'password' => Hash::make('letmein') ]); |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | \ No newline at end of file |