Passed
Pull Request — master (#47)
by Iman
10:15 queued 07:54
created
src/Utils/Normalizers/CacheNormalizer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  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 19
             $widget->cacheLifeTime = $this->makeFromSeconds($M * 60);
20 20
         }
@@ -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.
src/Utils/Policies.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.