Passed
Push — master ( a23672...3dee81 )
by Iman
08:02
created
src/Utils/Normalizers/CacheNormalizer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,12 +14,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.