Passed
Push — main ( 421ae1...37a888 )
by PRATIK
22:36 queued 18:36
created
src/Http/Requests/NoticeRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Http/Requests/FeatureRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Http/Requests/PageRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Http/Requests/FacilityRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Http/Requests/SoftwareRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Http/Requests/ProductRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Models/Admin/Career.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Models/Admin/Post.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Models/Admin/Software.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]))
Please login to merge, or discard this patch.