@@ -15,14 +15,14 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function getTycoonsByInitial($initial) |
| 17 | 17 | { |
| 18 | - return Tycoon::where('tycoons.name', 'like', $initial . '%')->get(); |
|
| 18 | + return Tycoon::where('tycoons.name', 'like', $initial.'%')->get(); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function getTycoonsByWorldAndInitial($world_id, $initial) |
| 22 | 22 | { |
| 23 | 23 | return Tycoon::leftjoin('worlds_tycoons', 'worlds_tycoons.tycoon_id', '=', 'tycoons.id') |
| 24 | 24 | ->where('worlds_tycoons.world_id', $world_id) |
| 25 | - ->where('tycoons.name', 'like', $initial . '%') |
|
| 25 | + ->where('tycoons.name', 'like', $initial.'%') |
|
| 26 | 26 | ->get(); |
| 27 | 27 | } |
| 28 | 28 | |
@@ -24,14 +24,14 @@ |
||
| 24 | 24 | public function getGalaxies() |
| 25 | 25 | { |
| 26 | 26 | return GalaxyResource::collection( |
| 27 | - Galaxy::with(['type', 'worlds'])->get() |
|
| 27 | + Galaxy::with([ 'type', 'worlds' ])->get() |
|
| 28 | 28 | ); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function getGalaxyTypes() |
| 32 | 32 | { |
| 33 | 33 | return GalaxyTypeResource::collection( |
| 34 | - Cache::remember('galaxy_types', config('redis.cache_lives.galaxy_types', 60), function () { |
|
| 34 | + Cache::remember('galaxy_types', config('redis.cache_lives.galaxy_types', 60), function() { |
|
| 35 | 35 | return GalaxyType::all(); |
| 36 | 36 | }) |
| 37 | 37 | ); |