@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function getContent($name, array $data = []) |
| 44 | 44 | { |
| 45 | - $path = $this->packageRoot . '/view/_cache/' . str_replace('/', '_', $name); |
|
| 45 | + $path = $this->packageRoot.'/view/_cache/'.str_replace('/', '_', $name); |
|
| 46 | 46 | |
| 47 | 47 | if (!file_exists($path) || !$this->cache) { |
| 48 | 48 | $code = $this->compile($name, true, true); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function clearCache() |
| 81 | 81 | { |
| 82 | - $this->removeFromDir($this->packageRoot . '/view/_cache'); |
|
| 82 | + $this->removeFromDir($this->packageRoot.'/view/_cache'); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | private function compile($name, $processInclude, $processExtends) |
| 97 | 97 | { |
| 98 | 98 | $code = null; |
| 99 | - $path = $this->packageRoot . '/view/' . $name; |
|
| 99 | + $path = $this->packageRoot.'/view/'.$name; |
|
| 100 | 100 | |
| 101 | 101 | if (file_exists($path)) { |
| 102 | 102 | ob_start(); |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | $objects = scandir($dir); |
| 163 | 163 | foreach ($objects as $object) { |
| 164 | 164 | if ('.' != $object && '..' != $object) { |
| 165 | - if ('dir' == filetype($dir . '/' .$object)) { |
|
| 166 | - $this->removeFromDir($dir . '/' . $object, true); |
|
| 165 | + if ('dir' == filetype($dir.'/'.$object)) { |
|
| 166 | + $this->removeFromDir($dir.'/'.$object, true); |
|
| 167 | 167 | } else { |
| 168 | - unlink($dir . '/' . $object); |
|
| 168 | + unlink($dir.'/'.$object); |
|
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public static function handleFatal() |
| 46 | 46 | { |
| 47 | 47 | $error = error_get_last(); |
| 48 | - if(null !== $error) { |
|
| 48 | + if (null !== $error) { |
|
| 49 | 49 | self::render($error["type"], $error["message"], $error["file"], $error["line"]); |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $template = new Native(dirname(__FILE__) . '/', null, true); |
|
| 92 | + $template = new Native(dirname(__FILE__).'/', null, true); |
|
| 93 | 93 | $response = new Response(); |
| 94 | 94 | $response->headerStatus(418); |
| 95 | 95 | $response->setContent($template->getContent('catch.html.php', $data)); |