Passed
Push — main ( 0230d8...7f267a )
by PRATIK
03:52
created
src/Http/Livewire/Admin/About/AboutTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                     '1' => 'Active',
36 36
                     '0' => 'Inactive',
37 37
                 ])
38
-                ->filter(function (Builder $builder, string $value) {
38
+                ->filter(function(Builder $builder, string $value) {
39 39
                     if ($value === '1') {
40 40
                         $builder->where('active', true);
41 41
                     } elseif ($value === '0') {
Please login to merge, or discard this patch.
src/Http/Livewire/Admin/History/HistoryTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                     '1' => 'Active',
36 36
                     '0' => 'Inactive',
37 37
                 ])
38
-                ->filter(function (Builder $builder, string $value) {
38
+                ->filter(function(Builder $builder, string $value) {
39 39
                     if ($value === '1') {
40 40
                         $builder->where('active', true);
41 41
                     } elseif ($value === '0') {
Please login to merge, or discard this patch.
src/Http/Requests/AboutRequest.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->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
         ]);
Please login to merge, or discard this patch.
src/Repositories/HistoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function indexHistory()
14 14
     {
15 15
         $histories = config('adminetic.caching', true)
16
-            ? (Cache::has('histories') ? Cache::get('histories') : Cache::rememberForever('histories', function () {
16
+            ? (Cache::has('histories') ? Cache::get('histories') : Cache::rememberForever('histories', function() {
17 17
                 return History::latest()->get();
18 18
             }))
19 19
             : History::latest()->get();
Please login to merge, or discard this patch.
src/Repositories/AboutRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function indexAbout()
14 14
     {
15 15
         $abouts = config('adminetic.caching', true)
16
-            ? (Cache::has('abouts') ? Cache::get('abouts') : Cache::rememberForever('abouts', function () {
16
+            ? (Cache::has('abouts') ? Cache::get('abouts') : Cache::rememberForever('abouts', function() {
17 17
                 return About::latest()->get();
18 18
             }))
19 19
             : About::latest()->get();
Please login to merge, or discard this patch.
src/Models/Admin/Project.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Models/Admin/Slider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Models/Admin/Product.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Models/Admin/About.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
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,12 +46,12 @@  discard block
 block discarded – undo
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 getIconImageAttribute()
53 53
     {
54
-        return ! is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
54
+        return !is_null($this->getFirstMedia('icon_image')) ? $this->getFirstMediaUrl('icon_image') : asset('adminetic/static/placeholder.jpg');
55 55
     }
56 56
 
57 57
     public function scopeActive($qry)
Please login to merge, or discard this patch.