@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // Accessors |
58 | 58 | public function getImageAttribute() |
59 | 59 | { |
60 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/blog.gif'); |
|
60 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/blog.gif'); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | } |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | } |
@@ -85,11 +85,11 @@ discard block |
||
85 | 85 | // Accessors |
86 | 86 | public function getImageAttribute() |
87 | 87 | { |
88 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
88 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | public function getIconImageAttribute() |
92 | 92 | { |
93 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
93 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
94 | 94 | } |
95 | 95 | } |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | { |
22 | 22 | parent::boot(); |
23 | 23 | |
24 | - static::saving(function () { |
|
24 | + static::saving(function() { |
|
25 | 25 | self::cacheKey(); |
26 | 26 | }); |
27 | 27 | |
28 | - static::deleting(function () { |
|
28 | + static::deleting(function() { |
|
29 | 29 | self::cacheKey(); |
30 | 30 | }); |
31 | 31 | } |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | // Accessors |
97 | 97 | public function getImageAttribute() |
98 | 98 | { |
99 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/blog.gif'); |
|
99 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/blog.gif'); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | // Accessors |
103 | 103 | public function getIconImageAttribute() |
104 | 104 | { |
105 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/blog.gif'); |
|
105 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/blog.gif'); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | } |
@@ -79,11 +79,11 @@ discard block |
||
79 | 79 | // Accessors |
80 | 80 | public function getImageAttribute() |
81 | 81 | { |
82 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
82 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | public function getIconImageAttribute() |
86 | 86 | { |
87 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
87 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
88 | 88 | } |
89 | 89 | } |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | } |
@@ -79,11 +79,11 @@ discard block |
||
79 | 79 | // Accessors |
80 | 80 | public function getImageAttribute() |
81 | 81 | { |
82 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
82 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | public function getIconImageAttribute() |
86 | 86 | { |
87 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
87 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
88 | 88 | } |
89 | 89 | } |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::boot(); |
22 | 22 | |
23 | - static::saving(function () { |
|
23 | + static::saving(function() { |
|
24 | 24 | self::cacheKey(); |
25 | 25 | }); |
26 | 26 | |
27 | - static::deleting(function () { |
|
27 | + static::deleting(function() { |
|
28 | 28 | self::cacheKey(); |
29 | 29 | }); |
30 | 30 | } |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | // Accessors |
53 | 53 | public function getImageAttribute() |
54 | 54 | { |
55 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
55 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | public function getIconImageAttribute() |
59 | 59 | { |
60 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
60 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
61 | 61 | } |
62 | 62 | } |