@@ -101,11 +101,11 @@ discard block |
||
101 | 101 | if (is_array($elementMix)) { |
102 | 102 | $result = []; |
103 | 103 | foreach ($elementMix as $value) { |
104 | - array_push($result, $cachePrefix . '-' . $value); |
|
104 | + array_push($result, $cachePrefix.'-'.$value); |
|
105 | 105 | } |
106 | 106 | return $result; |
107 | 107 | } else { |
108 | - $result = $cachePrefix . '-' . $elementMix; |
|
108 | + $result = $cachePrefix.'-'.$elementMix; |
|
109 | 109 | } |
110 | 110 | return $result; |
111 | 111 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | public static function bootCachable() |
140 | 140 | { |
141 | - static::saved(function ($instance) { |
|
141 | + static::saved(function($instance) { |
|
142 | 142 | $instance->flushCache(); |
143 | 143 | }); |
144 | 144 | } |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $key = $instance->makeCacheKey(); |
156 | 156 | |
157 | 157 | return $instance->cache($tags) |
158 | - ->rememberForever($key, function () use ($columns) { |
|
158 | + ->rememberForever($key, function() use ($columns) { |
|
159 | 159 | return parent::all($columns); |
160 | 160 | }); |
161 | 161 | } |