@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | $tpl = $this->getTplPath($this->widget->template); |
| 42 | 42 | |
| 43 | - $this->html = "<span title='WidgetObj : ".get_class($this->widget).".php
Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>"; |
|
| 43 | + $this->html = "<span title='WidgetObj : " . get_class($this->widget) . ".php
Template : {$tpl}{$this->cacheState()}'>{$this->html}</span>"; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | private function cacheState() |
| 52 | 52 | { |
| 53 | - if (! $this->policies->widgetShouldUseCache()) { |
|
| 53 | + if (!$this->policies->widgetShouldUseCache()) { |
|
| 54 | 54 | return ' 
Cache: is globally turned off (You should put "enable_cache" => true in config\widgetize.php) '; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | private function addHtmlComments() |
| 61 | 61 | { |
| 62 | - $this->html = "<!-- '{".get_class($this->widget)."' Widget Start -->".$this->html."<!-- '".get_class($this->widget)."' Widget End -->"; |
|
| 62 | + $this->html = "<!-- '{" . get_class($this->widget) . "' Widget Start -->" . $this->html . "<!-- '" . get_class($this->widget) . "' Widget End -->"; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -69,9 +69,9 @@ discard block |
||
| 69 | 69 | private function getTplPath($tpl) |
| 70 | 70 | { |
| 71 | 71 | if (str_contains($tpl, 'Widgets::')) { |
| 72 | - $tpl = str_replace('Widgets::', app()->getNamespace().'Widgets\\', $tpl); |
|
| 72 | + $tpl = str_replace('Widgets::', app()->getNamespace() . 'Widgets\\', $tpl); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - return str_replace('.', '\\', $tpl).'.blade.php'; |
|
| 75 | + return str_replace('.', '\\', $tpl) . '.blade.php'; |
|
| 76 | 76 | } |
| 77 | 77 | } |