@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | protected function getStaticOutpath() |
112 | 112 | { |
113 | - $path = $this->config['assets-public'] ?? constant('SUDA_PUBLIC') . '/assets/' . $this->getStaticName(); |
|
113 | + $path = $this->config['assets-public'] ?? constant('SUDA_PUBLIC').'/assets/'.$this->getStaticName(); |
|
114 | 114 | FileSystem::make($path); |
115 | 115 | return $path; |
116 | 116 | } |
@@ -122,9 +122,9 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function getPath() |
124 | 124 | { |
125 | - $output = $this->config['output'] ?? constant('SUDA_DATA') . '/template'; |
|
125 | + $output = $this->config['output'] ?? constant('SUDA_DATA').'/template'; |
|
126 | 126 | FileSystem::make($output); |
127 | - return $output . '/' . $this->name . '-' . substr(md5_file($this->getSourcePath()), 10, 8) . '.php'; |
|
127 | + return $output.'/'.$this->name.'-'.substr(md5_file($this->getSourcePath()), 10, 8).'.php'; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | public function include(string $path) |
227 | 227 | { |
228 | 228 | $subfix = $this->config['subfix'] ?? ''; |
229 | - $included = new self(Resource::getPathByRelativePath($path . $subfix, dirname($this->source)), $this->config); |
|
229 | + $included = new self(Resource::getPathByRelativePath($path.$subfix, dirname($this->source)), $this->config); |
|
230 | 230 | $included->parent = $this; |
231 | 231 | echo $included->getRenderedString(); |
232 | 232 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | } else { |
250 | 250 | $prefix = '/assets'; |
251 | 251 | } |
252 | - return $prefix . '/' . $this->getStaticName(); |
|
252 | + return $prefix.'/'.$this->getStaticName(); |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | protected function prepareStaticSource() |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | } |
289 | 289 | } |
290 | 290 | } catch (Exception $e) { |
291 | - echo '<div style="color:red">' . $e->getMessage() . '</div>'; |
|
291 | + echo '<div style="color:red">'.$e->getMessage().'</div>'; |
|
292 | 292 | return; |
293 | 293 | } |
294 | 294 | } |
@@ -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; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $this->group |
119 | 119 | ); |
120 | 120 | } |
121 | - return '#' . $defaultName; |
|
121 | + return '#'.$defaultName; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |