@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | parent::boot(); |
| 21 | 21 | |
| 22 | - static::saving(function () { |
|
| 22 | + static::saving(function() { |
|
| 23 | 23 | self::cacheKey(); |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | - static::deleting(function () { |
|
| 26 | + static::deleting(function() { |
|
| 27 | 27 | self::cacheKey(); |
| 28 | 28 | }); |
| 29 | 29 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | // Accessors |
| 65 | 65 | public function getGroupAttribute($attribute) |
| 66 | 66 | { |
| 67 | - return ! is_null($attribute) ? (config('website.career_group', [ |
|
| 67 | + return !is_null($attribute) ? (config('website.career_group', [ |
|
| 68 | 68 | 1 => 'REASEARCHERS/STAFF', |
| 69 | 69 | 2 => 'FIELD STAFF', |
| 70 | 70 | 3 => 'INTERN/VOLUNTEERS', |
@@ -104,6 +104,6 @@ discard block |
||
| 104 | 104 | // Accessors |
| 105 | 105 | public function getImageAttribute() |
| 106 | 106 | { |
| 107 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 107 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 108 | 108 | } |
| 109 | 109 | } |
@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -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,6 +57,6 @@ 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 | } |
@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -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,12 +96,12 @@ 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 | } |
@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |
@@ -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 | } |
@@ -83,11 +83,11 @@ discard block |
||
| 83 | 83 | // Accessors |
| 84 | 84 | public function getImageAttribute() |
| 85 | 85 | { |
| 86 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 86 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | public function getIconImageAttribute() |
| 90 | 90 | { |
| 91 | - return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 91 | + return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg'); |
|
| 92 | 92 | } |
| 93 | 93 | } |