Passed
Pull Request — main (#24)
by PRATIK
19:05 queued 15:10
created
src/Http/Requests/ProjectRequest.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->project->meta_name ?? $this->meta_name ?? $this->name ?? null,
26 26
             'meta_description' => $this->project->meta_description ?? $this->meta_description ?? $this->excerpt ?? null,
27 27
         ]);
Please login to merge, or discard this patch.
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.