@@ -23,7 +23,7 @@ |
||
23 | 23 | $this->artisan('cache:clear'); |
24 | 24 | $this->artisan('db:seed'); |
25 | 25 | |
26 | - $this->beforeApplicationDestroyed(function () { |
|
26 | + $this->beforeApplicationDestroyed(function() { |
|
27 | 27 | $this->artisan('cache:clear'); |
28 | 28 | $this->artisan('migrate:rollback'); |
29 | 29 | RefreshDatabaseState::$migrated = false; |
@@ -13,20 +13,20 @@ |
||
13 | 13 | |
14 | 14 | trait Cacheable |
15 | 15 | { |
16 | - public static function find($id, $columns = ['*']) |
|
16 | + public static function find($id, $columns = [ '*' ]) |
|
17 | 17 | { |
18 | 18 | $model = ModelCache::findOrRequery($id, get_called_class()); |
19 | 19 | return self::filterFromColumns($model, $columns); |
20 | 20 | } |
21 | 21 | |
22 | - public static function findWithoutCache($id, $columns = ['*']) |
|
22 | + public static function findWithoutCache($id, $columns = [ '*' ]) |
|
23 | 23 | { |
24 | 24 | return get_parent_class(self::class)::find($id, $columns); |
25 | 25 | } |
26 | 26 | |
27 | 27 | private static function filterFromColumns($model, $columns) |
28 | 28 | { |
29 | - if ($columns !== ['*']) { |
|
29 | + if ($columns !== [ '*' ]) { |
|
30 | 30 | return collect($model)->first($columns); |
31 | 31 | } |
32 | 32 | return $model; |
@@ -28,6 +28,6 @@ |
||
28 | 28 | |
29 | 29 | public function receivesBroadcastNotificationsOn() |
30 | 30 | { |
31 | - return strtolower(get_short_class_name($this)) . '.' . $this->getKey(); |
|
31 | + return strtolower(get_short_class_name($this)).'.'.$this->getKey(); |
|
32 | 32 | } |
33 | 33 | } |