@@ -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 | |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | $path = $view->getTemplatePath(); |
| 69 | 69 | $path = Utility::sanitizePath($path); |
| 70 | 70 | |
| 71 | - $template = $this->templateRoot . DIRECTORY_SEPARATOR . $path . $view->getTemplate() . '.html'; |
|
| 71 | + $template = $this->templateRoot.DIRECTORY_SEPARATOR.$path.$view->getTemplate().'.html'; |
|
| 72 | 72 | |
| 73 | 73 | if (!is_file($template)) { |
| 74 | - throw new MissingTemplateException('Template file missing: ' . $template); |
|
| 74 | + throw new MissingTemplateException('Template file missing: '.$template); |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | return $template; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $tmpDir = sys_get_temp_dir(); |
| 86 | 86 | $templateHash = hash_file('sha1', $template); |
| 87 | - $cachedTemplateFile = $tmpDir . DIRECTORY_SEPARATOR . $templateHash; |
|
| 87 | + $cachedTemplateFile = $tmpDir.DIRECTORY_SEPARATOR.$templateHash; |
|
| 88 | 88 | |
| 89 | 89 | if (!file_exists($cachedTemplateFile)) { |
| 90 | 90 | $templateString = file_get_contents($template); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'flags' => $this->flags, |
| 93 | 93 | 'helpers' => [] |
| 94 | 94 | ]); |
| 95 | - file_put_contents($cachedTemplateFile, '<?php ' . $phpTemplateString . '?>'); |
|
| 95 | + file_put_contents($cachedTemplateFile, '<?php '.$phpTemplateString.'?>'); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | ob_start(); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Phauthentic\Presentation\Renderer; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Phauthentic\Presentation\Renderer; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Phauthentic\Presentation\View; |
| 5 | 5 | |