Passed
Push — main ( 6013cc...2e9e01 )
by PRATIK
22:33 queued 18:16
created
src/Models/Admin/Popup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
     {
18 18
         parent::boot();
19 19
 
20
-        static::saving(function () {
20
+        static::saving(function() {
21 21
             self::cacheKey();
22 22
         });
23 23
 
24
-        static::deleting(function () {
24
+        static::deleting(function() {
25 25
             self::cacheKey();
26 26
         });
27 27
 
28
-        Popup::creating(function ($model) {
28
+        Popup::creating(function($model) {
29 29
             $model->position = Popup::max('position') + 1;
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/Repositories/PopupRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function indexPopup()
15 15
     {
16 16
         $popups = config('adminetic.caching', true)
17
-            ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function () {
17
+            ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function() {
18 18
                 return Popup::latest()->get();
19 19
             }))
20 20
             : Popup::latest()->get();
Please login to merge, or discard this patch.