@@ -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->notice->meta_name ?? $this->meta_name ?? $this->name ?? null, |
26 | 26 | 'meta_description' => $this->notice->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
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->feature->meta_name ?? $this->meta_name ?? $this->name ?? null, |
26 | 26 | 'meta_description' => $this->feature->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
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->page->meta_name ?? $this->meta_name ?? $this->name ?? null, |
26 | 26 | 'meta_description' => $this->page->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
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->facility->meta_name ?? $this->meta_name ?? $this->name ?? null, |
26 | 26 | 'meta_description' => $this->facility->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
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->software->meta_name ?? $this->meta_name ?? $this->name ?? null, |
26 | 26 | 'meta_description' => $this->software->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
27 | 27 | ]); |
@@ -21,8 +21,8 @@ |
||
21 | 21 | protected function prepareForValidation(): void |
22 | 22 | { |
23 | 23 | $this->merge([ |
24 | - 'slug' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
25 | - 'sku' => ! is_null($this->name) ? Str::slug($this->name) : null, |
|
24 | + 'slug' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
25 | + 'sku' => !is_null($this->name) ? Str::slug($this->name) : null, |
|
26 | 26 | 'meta_name' => $this->project->meta_name ?? $this->meta_name ?? $this->name ?? null, |
27 | 27 | 'meta_description' => $this->project->meta_description ?? $this->meta_description ?? $this->excerpt ?? null, |
28 | 28 | ]); |
@@ -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 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | // Accessors |
58 | 58 | public function getGroupAttribute($attribute) |
59 | 59 | { |
60 | - return ! is_null($attribute) ? (config('website.career_group', [ |
|
60 | + return !is_null($attribute) ? (config('website.career_group', [ |
|
61 | 61 | 1 => 'REASEARCHERS/STAFF', |
62 | 62 | 2 => 'FIELD STAFF', |
63 | 63 | 3 => 'INTERN/VOLUNTEERS', |
@@ -25,11 +25,11 @@ discard block |
||
25 | 25 | { |
26 | 26 | parent::boot(); |
27 | 27 | |
28 | - static::saving(function () { |
|
28 | + static::saving(function() { |
|
29 | 29 | self::cacheKey(); |
30 | 30 | }); |
31 | 31 | |
32 | - static::deleting(function () { |
|
32 | + static::deleting(function() { |
|
33 | 33 | self::cacheKey(); |
34 | 34 | }); |
35 | 35 | } |
@@ -79,7 +79,7 @@ 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/blog.gif'); |
|
82 | + return !is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/blog.gif'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | public function getOptimizedTitleAttribute() |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $schema = Schema::article() |
152 | 152 | ->name($this->meta_name ?? $this->name) |
153 | 153 | ->description($this->meta_description ?? $this->excerpt) |
154 | - ->if(! is_null($this->getFirstMedia('image')), function (Article $schema) { |
|
154 | + ->if(!is_null($this->getFirstMedia('image')), function(Article $schema) { |
|
155 | 155 | $schema->image($this->getFirstMediaUrl('image')); |
156 | 156 | }) |
157 | 157 | ->keywords($this->meta_keywords); |
@@ -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])) |