@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | { |
49 | 49 | if (false === strpos($name, '.')) { |
50 | 50 | if (!empty($name)) { |
51 | - $name = '.' . $name; |
|
51 | + $name = '.'.$name; |
|
52 | 52 | } |
53 | - $name = 'view' . $name . '.html.php'; |
|
53 | + $name = 'view'.$name.'.html.php'; |
|
54 | 54 | $this->routeView = true; |
55 | 55 | } |
56 | - $path = $this->packageRoot . '/view/_cache/' . str_replace('/', '_', $name); |
|
56 | + $path = $this->packageRoot.'/view/_cache/'.str_replace('/', '_', $name); |
|
57 | 57 | |
58 | 58 | if (!file_exists($path) || !$this->cache) { |
59 | 59 | $code = $this->compile($name, true, true); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function clearCache() |
108 | 108 | { |
109 | - self::removeFromDir($this->packageRoot . '/view/_cache'); |
|
109 | + self::removeFromDir($this->packageRoot.'/view/_cache'); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
@@ -127,13 +127,13 @@ discard block |
||
127 | 127 | $path = ''; |
128 | 128 | $stack = debug_backtrace(); |
129 | 129 | foreach ($stack as $item) { |
130 | - if (false !== stripos($item['file'], DIRECTORY_SEPARATOR . 'Route' . DIRECTORY_SEPARATOR)) { |
|
131 | - $path = pathinfo($item['file'], PATHINFO_DIRNAME) . '/' . $name; |
|
130 | + if (false !== stripos($item['file'], DIRECTORY_SEPARATOR.'Route'.DIRECTORY_SEPARATOR)) { |
|
131 | + $path = pathinfo($item['file'], PATHINFO_DIRNAME).'/'.$name; |
|
132 | 132 | break; |
133 | 133 | } |
134 | 134 | } |
135 | 135 | } else { |
136 | - $path = $this->packageRoot . '/view/' . $name; |
|
136 | + $path = $this->packageRoot.'/view/'.$name; |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | if (file_exists($path)) { |