@@ -22,11 +22,11 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | parent::boot(); |
| 24 | 24 | |
| 25 | - static::saving(function () { |
|
| 25 | + static::saving(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - static::deleting(function () { |
|
| 29 | + static::deleting(function() { |
|
| 30 | 30 | self::cacheKey(); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | // Accessors |
| 55 | 55 | public function getBannerAttribute() |
| 56 | 56 | { |
| 57 | - return ! is_null($this->getFirstMedia('banner')) ? $this->getFirstMediaUrl('banner') : logoBanner(); |
|
| 57 | + return !is_null($this->getFirstMedia('banner')) ? $this->getFirstMediaUrl('banner') : logoBanner(); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | // Relationships |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | ->author(title()) |
| 93 | 93 | ->description($this->meta_description ?? $this->excerpt) |
| 94 | 94 | ->image($this->banner) |
| 95 | - ->if(! is_null($modules), function (SoftwareApplication $schema) use ($modules) { |
|
| 95 | + ->if(!is_null($modules), function(SoftwareApplication $schema) use ($modules) { |
|
| 96 | 96 | $schema->email(collect($modules)->pluck('name')->toArray()); |
| 97 | 97 | }) |
| 98 | 98 | ->url(route('website.software', ['software' => $this->slug])) |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function prepareForValidation(): void |
| 22 | 22 | { |
| 23 | 23 | $this->merge([ |
| 24 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 24 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 25 | 25 | ]); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function prepareForValidation(): void |
| 22 | 22 | { |
| 23 | 23 | $this->merge([ |
| 24 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 24 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 25 | 25 | ]); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function prepareForValidation(): void |
| 22 | 22 | { |
| 23 | 23 | $this->merge([ |
| 24 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
| 24 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
| 25 | 25 | 'meta_name' => $this->service->meta_name ?? $this->meta_name ?? $this->name ?? null, |
| 26 | 26 | 'meta_description' => $this->service->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
| 27 | 27 | ]); |
@@ -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 | } |
@@ -50,6 +50,6 @@ discard block |
||
| 50 | 50 | // Accessors |
| 51 | 51 | public function getImagesAttribute() |
| 52 | 52 | { |
| 53 | - return ! is_null($this->getMedia('images')) ? $this->getMedia('images') : null; |
|
| 53 | + return !is_null($this->getMedia('images')) ? $this->getMedia('images') : null; |
|
| 54 | 54 | } |
| 55 | 55 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | protected function prepareForValidation(): void |
| 22 | 22 | { |
| 23 | 23 | $this->merge([ |
| 24 | - 'slug' => ! is_null($this->title) ? Str::slug($this->title) : null, |
|
| 24 | + 'slug' => !is_null($this->title) ? Str::slug($this->title) : null, |
|
| 25 | 25 | 'meta_name' => $this->process->meta_name ?? $this->meta_name ?? $this->title ?? null, |
| 26 | 26 | 'meta_description' => $this->process->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
| 27 | 27 | ]); |
@@ -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 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | // Accessors |
| 47 | 47 | public function getImageAttribute() |
| 48 | 48 | { |
| 49 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 49 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg'); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | public function scopeActive($qry) |
@@ -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 | } |
@@ -77,6 +77,6 @@ discard block |
||
| 77 | 77 | // Accessors |
| 78 | 78 | public function getImageAttribute() |
| 79 | 79 | { |
| 80 | - return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/slider.jpg'); |
|
| 80 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/slider.jpg'); |
|
| 81 | 81 | } |
| 82 | 82 | } |