@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public function getSourcePath(): ?string |
25 | 25 | { |
26 | 26 | $subfix = $this->config['subfix'] ?? '.tpl.html'; |
27 | - return $this->getResource($this->module)->getResourcePath($this->getTemplatePath() . '/' . $this->name . $subfix); |
|
27 | + return $this->getResource($this->module)->getResourcePath($this->getTemplatePath().'/'.$this->name.$subfix); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function getPath() |
36 | 36 | { |
37 | - $output = $this->config['output'] ?? $this->application->getDataPath() . '/template/' . $this->uriName; |
|
37 | + $output = $this->config['output'] ?? $this->application->getDataPath().'/template/'.$this->uriName; |
|
38 | 38 | FileSystem::make($output); |
39 | - return $output . '/' . $this->name . '.php'; |
|
39 | + return $output.'/'.$this->name.'.php'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -56,18 +56,18 @@ discard block |
||
56 | 56 | |
57 | 57 | public function getRenderedString() |
58 | 58 | { |
59 | - $this->application->debug()->time('render ' . $this->name); |
|
59 | + $this->application->debug()->time('render '.$this->name); |
|
60 | 60 | $code = parent::getRenderedString(); |
61 | - $this->application->debug()->timeEnd('render ' . $this->name); |
|
61 | + $this->application->debug()->timeEnd('render '.$this->name); |
|
62 | 62 | return $code; |
63 | 63 | } |
64 | 64 | |
65 | 65 | protected function compile() |
66 | 66 | { |
67 | 67 | if ($this->isCompiled() === false) { |
68 | - $this->application->debug()->time('compile ' . $this->name); |
|
68 | + $this->application->debug()->time('compile '.$this->name); |
|
69 | 69 | $result = parent::compile(); |
70 | - $this->application->debug()->timeEnd('compile ' . $this->name); |
|
70 | + $this->application->debug()->timeEnd('compile '.$this->name); |
|
71 | 71 | return $result; |
72 | 72 | } |
73 | 73 | return true; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | } |
106 | 106 | return $this->application->getUrl($this->request, $name, $values ?? [], true, $this->module, $this->group); |
107 | 107 | } elseif (is_string($defaultName)) { |
108 | - $parameter = is_array($name)?array_merge($query, $name):$query; |
|
108 | + $parameter = is_array($name) ?array_merge($query, $name) : $query; |
|
109 | 109 | return $this->application->getUrl( |
110 | 110 | $this->request, |
111 | 111 | $defaultName, |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $this->group |
116 | 116 | ); |
117 | 117 | } |
118 | - return '#' . $defaultName; |
|
118 | + return '#'.$defaultName; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 |