@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'galaxies'; |
10 | 10 | |
11 | - protected $fillable = [ 'galaxy_type_id', 'galaxy_owner_id', 'name', 'display_name']; |
|
11 | + protected $fillable = ['galaxy_type_id', 'galaxy_owner_id', 'name', 'display_name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function type() |
16 | 16 | { |
@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = "galaxy_types"; |
10 | 10 | |
11 | - protected $fillable = [ 'name', 'display_name' ]; |
|
11 | + protected $fillable = ['name', 'display_name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function galaxy() |
16 | 16 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'building_classes'; |
10 | 10 | |
11 | - protected $fillable = [ 'building_type_id', 'system_faction_id' ]; |
|
11 | + protected $fillable = ['building_type_id', 'system_faction_id']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = "map_buildings"; |
10 | 10 | |
11 | - protected $fillable = [ 'map_id', 'location_x', 'location_y', 'building_class_id', 'building_id', 'deterioration_level' ]; |
|
11 | + protected $fillable = ['map_id', 'location_x', 'location_y', 'building_class_id', 'building_id', 'deterioration_level']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,9 +8,9 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'maps'; |
10 | 10 | |
11 | - protected $fillable = [ 'map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename' ]; |
|
11 | + protected $fillable = ['map_category_id', 'name', 'display_name', 'map_x', 'map_y', 'location', 'filename']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at']; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function category() |
16 | 16 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoon_companies'; |
10 | 10 | |
11 | - protected $fillable = [ 'tycoon_id', 'system_faction_id', 'name' ]; |
|
11 | + protected $fillable = ['tycoon_id', 'system_faction_id', 'name']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated' ]; |
|
13 | + protected $dates = ['created_at', 'updated']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoons_online'; |
10 | 10 | |
11 | - protected $fillable = [ 'tycoon_id' ]; |
|
11 | + protected $fillable = ['tycoon_id']; |
|
12 | 12 | |
13 | - protected $dates = [ 'last_request' ]; |
|
13 | + protected $dates = ['last_request']; |
|
14 | 14 | } |
15 | 15 | \ No newline at end of file |
@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | { |
9 | 9 | protected $table = 'tycoons'; |
10 | 10 | |
11 | - protected $fillable = [ 'user_id', 'name', 'cash' ]; |
|
11 | + protected $fillable = ['user_id', 'name', 'cash']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function worlds() |
16 | 16 | { |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | |
25 | 25 | public function scopeInitial($query, $initial) |
26 | 26 | { |
27 | - return $query->where('name', 'LIKE', $initial . '%'); |
|
27 | + return $query->where('name', 'LIKE', $initial.'%'); |
|
28 | 28 | } |
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | { |
9 | 9 | protected $table = 'worlds'; |
10 | 10 | |
11 | - protected $fillable = [ 'galaxy_id', 'map_id', 'name', 'display_name', 'use_whitelist', 'use_blacklist' ]; |
|
11 | + protected $fillable = ['galaxy_id', 'map_id', 'name', 'display_name', 'use_whitelist', 'use_blacklist']; |
|
12 | 12 | |
13 | - protected $dates = [ 'created_at', 'updated_at' ]; |
|
13 | + protected $dates = ['created_at', 'updated_at']; |
|
14 | 14 | |
15 | 15 | public function galaxy() |
16 | 16 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | public function scopeOnlineCount($query) |
41 | 41 | { |
42 | - return $query->withCount(['online' => function ($query) { |
|
42 | + return $query->withCount(['online' => function($query) { |
|
43 | 43 | $query->online(); |
44 | 44 | }]); |
45 | 45 | } |