Passed
Push — main ( 1d9eb2...bb78af )
by PRATIK
06:49 queued 02:16
created
src/Models/Admin/Project.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             ][$attribute] : null;
81 81
     }
82 82
 
83
-     // Accessors
83
+        // Accessors
84 84
     public function getImageAttribute()
85 85
     {
86 86
         return ! is_null($this->getFirstMedia('image')) ? $this->getFirstMediaUrl('image') : asset('adminetic/static/placeholder.jpg');
Please login to merge, or discard this 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/Gallery.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
     }
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.