Completed
Push — master ( 9dd925...0ab309 )
by Iman
02:19
created
src/Utils/Normalizers/CacheNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function normalizeCacheLifeTime($widget)
13 13
     {
14
-        if (! property_exists($widget, 'cacheLifeTime')) {
15
-            $widget->cacheLifeTime = (int) (config('widgetize.default_cache_lifetime', 0));
14
+        if (!property_exists($widget, 'cacheLifeTime')) {
15
+            $widget->cacheLifeTime = (int)(config('widgetize.default_cache_lifetime', 0));
16 16
         }
17 17
 
18 18
         if ($widget->cacheLifeTime === 'forever') {
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function normalizeCacheTags($widget)
29 29
     {
30
-        if (! $this->cacheCanUseTags() || ! property_exists($widget, 'cacheTags')) {
30
+        if (!$this->cacheCanUseTags() || !property_exists($widget, 'cacheTags')) {
31 31
             return $widget->cacheTags = null;
32 32
         }
33 33
 
@@ -44,6 +44,6 @@  discard block
 block discarded – undo
44 44
      */
45 45
     private function cacheCanUseTags()
46 46
     {
47
-        return ! in_array(env('CACHE_DRIVER', 'file'), ['file', 'database']);
47
+        return !in_array(env('CACHE_DRIVER', 'file'), ['file', 'database']);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.