@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function normalize($widget): void |
16 | 16 | { |
17 | - if (! property_exists($widget, 'cacheLifeTime')) { |
|
17 | + if (!property_exists($widget, 'cacheLifeTime')) { |
|
18 | 18 | $M = config('widgetize.default_cache_lifetime', 0); |
19 | 19 | $widget->cacheLifeTime = $this->makeFromSeconds($M * 60); |
20 | 20 | } |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | |
38 | 38 | public function makeFromSeconds($s) |
39 | 39 | { |
40 | - return new \DateInterval('PT'.(string) ceil($s).'S'); |
|
40 | + return new \DateInterval('PT' . (string)ceil($s) . 'S'); |
|
41 | 41 | } |
42 | 42 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function widgetShouldHaveDebugInfo(): bool |
13 | 13 | { |
14 | - return config('widgetize.debug_info') && ! app()->environment('production'); |
|
14 | + return config('widgetize.debug_info') && !app()->environment('production'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function widgetShouldUseCache(): bool |
25 | 25 | { |
26 | - return config('widgetize.enable_cache') && (! app()->environment('testing')); |
|
26 | + return config('widgetize.enable_cache') && (!app()->environment('testing')); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |