Completed
Push — master ( 94d3aa...1e9c69 )
by Iman
05:12
created
src/Utils/Cache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $cache = app('cache');
32 32
 
33
-        if (! empty($widgetObj->cacheTags) && $this->cacheDriverSupportsTags()) {
33
+        if (!empty($widgetObj->cacheTags) && $this->cacheDriverSupportsTags()) {
34 34
             $cache = $cache->tags($widgetObj->cacheTags);
35 35
         }
36 36
 
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
             $_key = json_encode($widget->extraCacheKeyDependency($arg));
62 62
         }
63 63
 
64
-        if (! $this->cacheDriverSupportsTags()) {
64
+        if (!$this->cacheDriverSupportsTags()) {
65 65
             $_key .= json_encode($this->getTagTokens($widget->cacheTags));
66 66
         }
67 67
 
68
-        $_key .= json_encode($arg, JSON_FORCE_OBJECT).app()->getLocale().$form.$widget->template.get_class($widget);
68
+        $_key .= json_encode($arg, JSON_FORCE_OBJECT) . app()->getLocale() . $form . $widget->template . get_class($widget);
69 69
 
70 70
         return md5($_key);
71 71
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     private function cacheDriverSupportsTags() : bool
78 78
     {
79
-        return ! in_array(config('cache.default', 'file'), ['file', 'database']);
79
+        return !in_array(config('cache.default', 'file'), ['file', 'database']);
80 80
     }
81 81
 
82 82
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     private function getTagTokens(array $cacheTags)
87 87
     {
88
-        return array_map(function ($tag) {
88
+        return array_map(function($tag) {
89 89
             return $this->_cacheTag->getTagToken($tag);
90 90
         }, $cacheTags);
91 91
     }
Please login to merge, or discard this patch.