@@ -69,7 +69,7 @@  | 
                                                    ||
| 69 | 69 |      { | 
                                                        
| 70 | 70 |          return SensorData::whereRaw('id = (SELECT MAX(id) | 
                                                        
| 71 | 71 | FROM sensor_data  | 
                                                        
| 72 | - WHERE sensor_id = ?)', [$this->id])->first() ?? (object)[];  | 
                                                        |
| 72 | + WHERE sensor_id = ?)', [ $this->id ])->first() ?? (object) [ ];  | 
                                                        |
| 73 | 73 | }  | 
                                                        
| 74 | 74 | |
| 75 | 75 | /**  | 
                                                        
@@ -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 | /**  | 
                                                        
@@ -119,7 +119,7 @@ discard block  | 
                                                    ||
| 119 | 119 | */  | 
                                                        
| 120 | 120 | public function getOpenTimeHumanAttribute()  | 
                                                        
| 121 | 121 |      { | 
                                                        
| 122 | - $time = new Carbon($this->attributes['open_time'], 'UTC');  | 
                                                        |
| 122 | + $time = new Carbon($this->attributes[ 'open_time' ], 'UTC');  | 
                                                        |
| 123 | 123 | $time = $time->setTimezone(Auth::user()->timezone);  | 
                                                        
| 124 | 124 | |
| 125 | 125 |          return $time->format('h:i a'); | 
                                                        
@@ -152,7 +152,7 @@ discard block  | 
                                                    ||
| 152 | 152 | */  | 
                                                        
| 153 | 153 | public function getCloseTimeHumanAttribute()  | 
                                                        
| 154 | 154 |      { | 
                                                        
| 155 | - $time = new Carbon($this->attributes['close_time'], 'UTC');  | 
                                                        |
| 155 | + $time = new Carbon($this->attributes[ 'close_time' ], 'UTC');  | 
                                                        |
| 156 | 156 | $time = $time->setTimezone(Auth::user()->timezone);  | 
                                                        
| 157 | 157 | |
| 158 | 158 |          return $time->format('h:i a'); | 
                                                        
@@ -177,7 +177,7 @@ discard block  | 
                                                    ||
| 177 | 177 | else  | 
                                                        
| 178 | 178 | $time = new Carbon($value, 'UTC');  | 
                                                        
| 179 | 179 | |
| 180 | -        $this->attributes['open_time'] = $time->format('H:i:s'); | 
                                                        |
| 180 | +        $this->attributes[ 'open_time' ] = $time->format('H:i:s'); | 
                                                        |
| 181 | 181 | }  | 
                                                        
| 182 | 182 | |
| 183 | 183 | /**  | 
                                                        
@@ -199,7 +199,7 @@ discard block  | 
                                                    ||
| 199 | 199 | else  | 
                                                        
| 200 | 200 | $time = new Carbon($value, 'UTC');  | 
                                                        
| 201 | 201 | |
| 202 | -        $this->attributes['close_time'] = $time->format('H:i:s'); | 
                                                        |
| 202 | +        $this->attributes[ 'close_time' ] = $time->format('H:i:s'); | 
                                                        |
| 203 | 203 | }  | 
                                                        
| 204 | 204 | |
| 205 | 205 | /**  | 
                                                        
@@ -371,7 +371,7 @@ discard block  | 
                                                    ||
| 371 | 371 | $isClosed = $this->cover_status === 'closed';  | 
                                                        
| 372 | 372 | $isLocked = $this->cover_status === 'locked';  | 
                                                        
| 373 | 373 | |
| 374 | - switch ($this['cover_command'])  | 
                                                        |
| 374 | + switch ($this[ 'cover_command' ])  | 
                                                        |
| 375 | 375 |          { | 
                                                        
| 376 | 376 | case 'open':  | 
                                                        
| 377 | 377 | if ($isOpen)  |