@@ -11,8 +11,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |