Completed
Push — master ( 5e7297...b76511 )
by Iman
14:15
created
src/Utils/Policies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function widgetShouldUseCache()
25 25
     {
26
-        return (env('WIDGET_CACHE', false) !== false) && (! app()->environment('testing'));
26
+        return (env('WIDGET_CACHE', false) !== false) && (!app()->environment('testing'));
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
src/Utils/DebugInfo.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         if (str_contains($this->widget->template, 'Widgets::')) {
33 33
             $tpl = str_replace('Widgets::', 'app\Widgets\\', $this->widget->template);
34 34
         }
35
-        $this->html = "<div title='".get_class($this->widget)."::class || template : {$tpl}".$this->cacheState()."' style='box-shadow: 0px 0px 15px 5px #00c62b inset'>".$this->html.'</div>';
35
+        $this->html = "<div title='" . get_class($this->widget) . "::class || template : {$tpl}" . $this->cacheState() . "' style='box-shadow: 0px 0px 15px 5px #00c62b inset'>" . $this->html . '</div>';
36 36
     }
37 37
 
38 38
     /**
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     private function cacheState()
43 43
     {
44
-        if (! $this->policies->widgetShouldUseCache()) {
44
+        if (!$this->policies->widgetShouldUseCache()) {
45 45
             return ' || cache: is globally turned off (in .env set WIDGET_CACHE=true) ';
46 46
         }
47 47
 
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
 
51 51
     private function addHtmlComments()
52 52
     {
53
-        $this->html = "<!-- '{".get_class($this->widget)."' Widget Start -->".$this->html."<!-- '".get_class($this->widget)."' Widget End -->";
53
+        $this->html = "<!-- '{" . get_class($this->widget) . "' Widget Start -->" . $this->html . "<!-- '" . get_class($this->widget) . "' Widget End -->";
54 54
     }
55 55
 }
Please login to merge, or discard this patch.