Completed
Push — master ( 1f44f2...916496 )
by Ron
03:03
created
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         // should return either a User instance or null. You're free to obtain
39 39
         // the User instance via an API token or any other method necessary.
40 40
 
41
-        $this->app['auth']->viaRequest('api', function ($request) {
41
+        $this->app[ 'auth' ]->viaRequest('api', function($request) {
42 42
             if ($request->input('api_token')) {
43 43
                 return User::where('api_token', $request->input('api_token'))->first();
44 44
             }
Please login to merge, or discard this patch.
app/Http/Resources/GalaxyTypeResource.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
     public function toArray($request)
10 10
     {
11 11
         return [
12
-          'id' => $this->id,
13
-          'name' => $this->name,
14
-          'display_name' => $this->display_name,
15
-          'updated_at' => $this->updated_at->format('Y-m-d H:i:s'),
12
+            'id' => $this->id,
13
+            'name' => $this->name,
14
+            'display_name' => $this->display_name,
15
+            'updated_at' => $this->updated_at->format('Y-m-d H:i:s'),
16 16
         ];
17 17
     }
18 18
 }
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Controllers/Galaxies/GalaxyController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function getGalaxies()
15 15
     {
16 16
         return GalaxyResource::collection(
17
-            Cache::remember('galaxies', 60, function () {
17
+            Cache::remember('galaxies', 60, function() {
18 18
                 return Galaxy::with('type')->get();
19 19
             })
20 20
         );
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public function getTypes()
24 24
     {
25 25
         return GalaxyTypeResource::collection(
26
-            Cache::remember('galaxy_types', 60, function () {
26
+            Cache::remember('galaxy_types', 60, function() {
27 27
                 return GalaxyType::all();
28 28
             })
29 29
         );
Please login to merge, or discard this patch.
app/Http/Collections/GalaxyTypeCollection.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function toArray($request)
10 10
     {
11 11
         return [
12
-          'data' => $this->collection,
12
+            'data' => $this->collection,
13 13
         ];
14 14
     }
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Resources/WorldResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         ];
18 18
 
19 19
         if (!empty($this->updated_at)) {
20
-            $data['update_at'] = $this->updated_at->format('Y-m-d H:i:s');
20
+            $data[ 'update_at' ] = $this->updated_at->format('Y-m-d H:i:s');
21 21
         }
22 22
 
23 23
         return $data;
Please login to merge, or discard this patch.
app/Http/Controllers/Worlds/WorldController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     function getGalaxy($galaxy_id)
13 13
     {
14 14
         return WorldResource::collection(
15
-            Cache::remember('galaxy_worlds_' . $galaxy_id, 60, function () use ($galaxy_id) {
15
+            Cache::remember('galaxy_worlds_'.$galaxy_id, 60, function() use ($galaxy_id) {
16 16
                 return World::where('galaxy_id', $galaxy_id)->get();
17 17
             })
18 18
         );
Please login to merge, or discard this patch.