@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function render(ViewInterface $render): string |
52 | 52 | { |
53 | - $template = $this->twig->load($render->getTemplate() . '.' . $this->getTemplateExtension()); |
|
53 | + $template = $this->twig->load($render->getTemplate().'.'.$this->getTemplateExtension()); |
|
54 | 54 | |
55 | 55 | return $template->render($render->getViewVars()); |
56 | 56 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 | |
@@ -102,10 +102,10 @@ discard block |
||
102 | 102 | $path = $view->getTemplatePath(); |
103 | 103 | $path = Utility::sanitizePath($path); |
104 | 104 | |
105 | - $template = $this->templateRoot . DIRECTORY_SEPARATOR . $path . $view->getTemplate() . '.html'; |
|
105 | + $template = $this->templateRoot.DIRECTORY_SEPARATOR.$path.$view->getTemplate().'.html'; |
|
106 | 106 | |
107 | 107 | if (!is_file($template)) { |
108 | - throw new MissingTemplateException('Template file missing: ' . $template); |
|
108 | + throw new MissingTemplateException('Template file missing: '.$template); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | return $template; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | { |
119 | 119 | $tmpDir = sys_get_temp_dir(); |
120 | 120 | $templateHash = hash_file('sha1', $template); |
121 | - $cachedTemplateFile = $tmpDir . DIRECTORY_SEPARATOR . sha1($template) . '-' . $templateHash; |
|
121 | + $cachedTemplateFile = $tmpDir.DIRECTORY_SEPARATOR.sha1($template).'-'.$templateHash; |
|
122 | 122 | |
123 | 123 | if (!file_exists($cachedTemplateFile)) { |
124 | 124 | $templateString = file_get_contents($template); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | 'flags' => $this->flags, |
127 | 127 | 'helpers' => $this->helpers |
128 | 128 | ]); |
129 | - file_put_contents($cachedTemplateFile, '<?php ' . $phpTemplateString . '?>'); |
|
129 | + file_put_contents($cachedTemplateFile, '<?php '.$phpTemplateString.'?>'); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | ob_start(); |