Completed
Push — develop ( 291211...8d06e7 )
by Ando
11:36
created
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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'))
Please login to merge, or discard this patch.
app/Http/Middleware/SpeakJson.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/V1/PuppyController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     public function index()
10 10
     {
11
-        return response()->json(['ok']);
11
+        return response()->json([ 'ok' ]);
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
34 34
 |
35 35
 */
36 36
 
37
-Route::group(['middleware' => ['web']], function () {
37
+Route::group([ 'middleware' => [ 'web' ] ], function() {
38 38
     //
39 39
 });
Please login to merge, or discard this patch.
database/seeds/UsersTableSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.