Passed
Push — main ( d80ffe...007845 )
by PRATIK
04:47
created
src/Models/Admin/Facility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  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
 
30
-        Facility::creating(function ($model) {
30
+        Facility::creating(function($model) {
31 31
             $model->position = Facility::max('position') + 1;
32 32
         });
33 33
     }
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
     // Accessors
59 59
     public function getNetworkIconImageAttribute()
60 60
     {
61
-        return isset($this->icon_image) ? url('storage/' . $this->icon_image) : null;
61
+        return isset($this->icon_image) ? url('storage/'.$this->icon_image) : null;
62 62
     }
63 63
     public function getNetworkImageAttribute()
64 64
     {
65
-        return isset($this->image) ? url('storage/' . $this->image) : null;
65
+        return isset($this->image) ? url('storage/'.$this->image) : null;
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
src/Models/Admin/Service.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,15 +19,15 @@  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
 
30
-        Service::creating(function ($model) {
30
+        Service::creating(function($model) {
31 31
             $model->position = Service::max('position') + 1;
32 32
         });
33 33
     }
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
     // Accessors
59 59
     public function getNetworkIconImageAttribute()
60 60
     {
61
-        return isset($this->icon_image) ? url('storage/' . $this->icon_image) : null;
61
+        return isset($this->icon_image) ? url('storage/'.$this->icon_image) : null;
62 62
     }
63 63
     public function getNetworkImageAttribute()
64 64
     {
65
-        return isset($this->image) ? url('storage/' . $this->image) : null;
65
+        return isset($this->image) ? url('storage/'.$this->image) : null;
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
src/Models/Admin/Post.php 1 patch
Spacing   +3 added lines, -3 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
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function getNetworkImageAttribute()
77 77
     {
78
-        return isset($this->image) ? url('storage/' . $this->image) : null;
78
+        return isset($this->image) ? url('storage/'.$this->image) : null;
79 79
     }
80 80
 
81 81
     // Relation
Please login to merge, or discard this patch.