@@ -17,7 +17,7 @@ |
||
| 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; |
@@ -12,7 +12,7 @@ |
||
| 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 | ); |