Completed
Push — master ( fbe425...a23672 )
by Iman
15:06
created
src/Utils/DebugInfo.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $tpl = $this->getTplPath($this->widget->template);
42 42
 
43
-        $this->html = "<span title='WidgetObj : ".get_class($this->widget).".php&#013;Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>";
43
+        $this->html = "<span title='WidgetObj : " . get_class($this->widget) . ".php&#013;Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>";
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     private function cacheState(): string
52 52
     {
53
-        if (! $this->policies->widgetShouldUseCache()) {
53
+        if (!$this->policies->widgetShouldUseCache()) {
54 54
             return ' &#013; Cache: is globally turned off (You should put "enable_cache" => true in config\widgetize.php) ';
55 55
         }
56 56
         $l = $this->widget->cacheLifeTime->i ?? 0;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     private function addHtmlComments(): void
62 62
     {
63
-        $this->html = "<!-- '{".get_class($this->widget)."' Widget Start -->".$this->html."<!-- '".get_class($this->widget)."' Widget End -->";
63
+        $this->html = "<!-- '{" . get_class($this->widget) . "' Widget Start -->" . $this->html . "<!-- '" . get_class($this->widget) . "' Widget End -->";
64 64
     }
65 65
 
66 66
     /**
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
     private function getTplPath(string $tpl): string
71 71
     {
72 72
         if (str_contains($tpl, 'Widgets::')) {
73
-            $tpl = str_replace('Widgets::', app()->getNamespace().'Widgets\\', $tpl);
73
+            $tpl = str_replace('Widgets::', app()->getNamespace() . 'Widgets\\', $tpl);
74 74
         }
75 75
 
76
-        return str_replace('.', '\\', $tpl).'.blade.php';
76
+        return str_replace('.', '\\', $tpl) . '.blade.php';
77 77
     }
78 78
 }
Please login to merge, or discard this patch.