@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $availableIncludes = ['purchase', 'sale']; |
|
15 | + protected $availableIncludes = [ 'purchase', 'sale' ]; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Turn this item object into a generic array. |
@@ -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 | } |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @var array |
61 | 61 | */ |
62 | - protected $guarded = []; |
|
62 | + protected $guarded = [ ]; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Date mutators. |
66 | 66 | * |
67 | 67 | * @var array |
68 | 68 | */ |
69 | - protected $dates = ['date_purchased', 'delivery_date', 'deleted_at']; |
|
69 | + protected $dates = [ 'date_purchased', 'delivery_date', 'deleted_at' ]; |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Default date format. |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | { |
80 | 80 | parent::boot(); |
81 | 81 | |
82 | - static::deleting(function (Purchase $purchase) { |
|
82 | + static::deleting(function(Purchase $purchase) { |
|
83 | 83 | $purchase->guitars()->delete(); |
84 | 84 | $purchase->notifications()->delete(); |
85 | 85 | }); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | if ($this->delivery_date->isFuture()) { |
132 | 132 | return self::UPCOMING; |
133 | 133 | } |
134 | - if (! $this->isPendingStorage()) { |
|
134 | + if (!$this->isPendingStorage()) { |
|
135 | 135 | return self::COMPLETED; |
136 | 136 | } |
137 | 137 |