@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @var array |
| 31 | 31 | */ |
| 32 | - protected $hidden = ['token']; |
|
| 32 | + protected $hidden = [ 'token' ]; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * The attributes that are mass assignable. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @var array |
| 50 | 50 | */ |
| 51 | - protected static $ignoreChangedAttributes = ['updated_at', 'last_network_update_at']; |
|
| 51 | + protected static $ignoreChangedAttributes = [ 'updated_at', 'last_network_update_at' ]; |
|
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * The attributes to log in the Activity Log |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function getSiteAttribute() |
| 91 | 91 | { |
| 92 | - return $this->location->site ?? (object)[]; |
|
| 92 | + return $this->location->site ?? (object) [ ]; |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | else |
| 150 | 150 | $time = new Carbon($value, 'UTC'); |
| 151 | 151 | |
| 152 | - $this->attributes['open_time'] = $time->format('H:i:s'); |
|
| 152 | + $this->attributes[ 'open_time' ] = $time->format('H:i:s'); |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | else |
| 172 | 172 | $time = new Carbon($value, 'UTC'); |
| 173 | 173 | |
| 174 | - $this->attributes['close_time'] = $time->format('H:i:s'); |
|
| 174 | + $this->attributes[ 'close_time' ] = $time->format('H:i:s'); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | $isClosed = $this->cover_status === 'closed'; |
| 311 | 311 | $isLocked = $this->cover_status === 'locked'; |
| 312 | 312 | |
| 313 | - switch ($this['cover_command']) |
|
| 313 | + switch ($this[ 'cover_command' ]) |
|
| 314 | 314 | { |
| 315 | 315 | case 'open': |
| 316 | 316 | if ($isOpen) |