Passed
Push — master ( f56560...ff4ea0 )
by Ron
03:41
created
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
-            Galaxy::with(['type', 'worlds'])->get()
17
+            Galaxy::with([ 'type', 'worlds' ])->get()
18 18
 //            Cache::remember('galaxies', config('redis.cache_lives.galaxies', 60), function () {
19 19
 //
20 20
 //            })
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function getTypes()
25 25
     {
26 26
         return GalaxyTypeResource::collection(
27
-            Cache::remember('galaxy_types', config('redis.cache_lives.galaxy_types', 60), function () {
27
+            Cache::remember('galaxy_types', config('redis.cache_lives.galaxy_types', 60), function() {
28 28
                 return GalaxyType::all();
29 29
             })
30 30
         );
Please login to merge, or discard this patch.
app/Http/Controllers/Worlds/WorldController.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
     public function getTycoons($world_id, $initial = null)
28 28
     {
29 29
         if (!empty($initial)) {
30
-           return Tycoon::where('name', 'like', $initial . '%')
31
-               ->leftjoin('worlds_tycoons', 'tycoons.id', '=', 'worlds_tycoons.id')
32
-               ->where('worlds_tycoons.world_id', $world_id)
33
-               ->get();
30
+            return Tycoon::where('name', 'like', $initial . '%')
31
+                ->leftjoin('worlds_tycoons', 'tycoons.id', '=', 'worlds_tycoons.id')
32
+                ->where('worlds_tycoons.world_id', $world_id)
33
+                ->get();
34 34
 
35 35
         } else {
36 36
             return World::where('id', $world_id)->with('tycoons.tycoon')->get();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function getTycoons($world_id, $initial = null)
28 28
     {
29 29
         if (!empty($initial)) {
30
-           return Tycoon::where('name', 'like', $initial . '%')
30
+           return Tycoon::where('name', 'like', $initial.'%')
31 31
                ->leftjoin('worlds_tycoons', 'tycoons.id', '=', 'worlds_tycoons.id')
32 32
                ->where('worlds_tycoons.world_id', $world_id)
33 33
                ->get();
Please login to merge, or discard this patch.
app/Http/Resources/GalaxyResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         ];
21 21
 
22 22
         if (!empty($this->worlds)) {
23
-            $galaxies['worlds'] = WorldResource::collection($this->worlds);
23
+            $galaxies[ 'worlds' ] = WorldResource::collection($this->worlds);
24 24
         }
25 25
 
26 26
         return $galaxies;
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
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         ];
19 19
 
20 20
         if (!empty($this->updated_at)) {
21
-            $data['updated_at'] = $this->updated_at->format('Y-m-d H:i:s');
21
+            $data[ 'updated_at' ] = $this->updated_at->format('Y-m-d H:i:s');
22 22
         }
23 23
 
24 24
         return $data;
Please login to merge, or discard this patch.