Passed
Push — main ( 51abd8...c6cb09 )
by PRATIK
04:21
created
src/Repositories/CounterRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     public function indexCounter()
14 14
     {
15 15
         $counters = config('adminetic.caching', true)
16
-            ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function () {
16
+            ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function() {
17 17
                 return Counter::latest()->get();
18 18
             }))
19 19
             : Counter::latest()->get();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 'icon' => request()->icon->store('website/counter', 'public'),
69 69
             ]);
70 70
             $image = Image::make(request()->file('icon')->getRealPath());
71
-            $image->save(public_path('storage/' . $counter->icon));
71
+            $image->save(public_path('storage/'.$counter->icon));
72 72
         }
73 73
     }
74 74
 }
Please login to merge, or discard this patch.