@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * We do not want any timestamps. |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @var array |
| 27 | 27 | */ |
| 28 | - protected $fillable = ['name', 'capacity', 'make_id', 'warehouse_id']; |
|
| 28 | + protected $fillable = [ 'name', 'capacity', 'make_id', 'warehouse_id' ]; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Warehouse the rack is in. |
@@ -11,14 +11,14 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * The attributes that are not mass assignable. |
| 18 | 18 | * |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - protected $guarded = []; |
|
| 21 | + protected $guarded = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
@@ -54,6 +54,6 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function dismiss() |
| 56 | 56 | { |
| 57 | - return $this->update(['dismissed' => true]); |
|
| 57 | + return $this->update([ 'dismissed' => true ]); |
|
| 58 | 58 | } |
| 59 | 59 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * We do not want any timestamps. |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @var array |
| 27 | 27 | */ |
| 28 | - protected $fillable = ['name']; |
|
| 28 | + protected $fillable = [ 'name' ]; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Racks in the warehouse. |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | public function addOrUpdateRack($rack) |
| 105 | 105 | { |
| 106 | 106 | (array_has($rack, 'id')) ? |
| 107 | - $this->racks()->find($rack['id'])->update($rack) : $this->addRack($rack); |
|
| 107 | + $this->racks()->find($rack[ 'id' ])->update($rack) : $this->addRack($rack); |
|
| 108 | 108 | |
| 109 | 109 | return $this; |
| 110 | 110 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * We do not want any timestamps. |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * |
| 26 | 26 | * @var array |
| 27 | 27 | */ |
| 28 | - protected $fillable = ['name', 'location']; |
|
| 28 | + protected $fillable = [ 'name', 'location' ]; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Purchases from this supplier. |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | protected function schedule(Schedule $schedule) |
| 29 | 29 | { |
| 30 | 30 | $schedule->command('purchases:check') |
| 31 | - ->dailyAt('00:01'); |
|
| 31 | + ->dailyAt('00:01'); |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * The attributes that are not mass assignable. |
| 18 | 18 | * |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - protected $guarded = []; |
|
| 21 | + protected $guarded = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Guitar that was sold. |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - protected $dates = ['deleted_at']; |
|
| 15 | + protected $dates = [ 'deleted_at' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * The attributes that are mass assignable. |
@@ -42,6 +42,6 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function getAvatarAttribute() |
| 44 | 44 | { |
| 45 | - return 'http://www.gravatar.com/avatar/' . md5($this->attributes['email']); |
|
| 45 | + return 'http://www.gravatar.com/avatar/'.md5($this->attributes[ 'email' ]); |
|
| 46 | 46 | } |
| 47 | 47 | } |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * The attributes that are not mass assignable. |
| 18 | 18 | * |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - protected $guarded = []; |
|
| 21 | + protected $guarded = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Guitar that was sold. |
@@ -11,14 +11,14 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @var array |
| 13 | 13 | */ |
| 14 | - protected $dates = ['deleted_at']; |
|
| 14 | + protected $dates = [ 'deleted_at' ]; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * The attributes that are not mass assignable. |
| 18 | 18 | * |
| 19 | 19 | * @var array |
| 20 | 20 | */ |
| 21 | - protected $guarded = []; |
|
| 21 | + protected $guarded = [ ]; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Guitar that was sold. |