@@ -14,12 +14,12 @@ 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 | - $widget->cacheLifeTime = $this->makeFromSeconds($M* 60); |
|
| 19 | + $widget->cacheLifeTime = $this->makeFromSeconds($M * 60); |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - if($widget->cacheLifeTime === 0) { |
|
| 22 | + if ($widget->cacheLifeTime === 0) { |
|
| 23 | 23 | $widget->cacheLifeTime = $this->makeFromSeconds(0); |
| 24 | 24 | } |
| 25 | 25 | |
@@ -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 | } |