@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getContent($name, array $data = []) |
47 | 47 | { |
48 | - $path = $this->packageRoot . '/view/_cache/' . str_replace('/', '_', $name); |
|
48 | + $path = $this->packageRoot.'/view/_cache/'.str_replace('/', '_', $name); |
|
49 | 49 | |
50 | 50 | if (!file_exists($path) || !$this->cache) { |
51 | 51 | $code = $this->compile($name, true, true); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | */ |
83 | 83 | public function clearCache() |
84 | 84 | { |
85 | - self::removeFromDir($this->packageRoot . '/view/_cache'); |
|
85 | + self::removeFromDir($this->packageRoot.'/view/_cache'); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | private function compile($name, $processInclude, $processExtends) |
100 | 100 | { |
101 | - $path = $this->packageRoot . '/view/' . $name; |
|
101 | + $path = $this->packageRoot.'/view/'.$name; |
|
102 | 102 | |
103 | 103 | if (file_exists($path)) { |
104 | 104 | ob_start(); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | if ($handle = opendir($root)) { |
27 | 27 | while (false !== ($entry = readdir($handle))) { |
28 | 28 | if ($entry != "." && $entry != "..") { |
29 | - $path = $root . '/' . $entry . '/view/cache'; |
|
29 | + $path = $root.'/'.$entry.'/view/cache'; |
|
30 | 30 | if (file_exists($path)) { |
31 | 31 | self::removeFromDir($path); |
32 | 32 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | $objects = scandir($dir); |
24 | 24 | foreach ($objects as $object) { |
25 | 25 | if ('.' != $object && '..' != $object) { |
26 | - if ('dir' == filetype($dir . '/' .$object)) { |
|
27 | - self::removeFromDir($dir . '/' . $object, true); |
|
26 | + if ('dir' == filetype($dir.'/'.$object)) { |
|
27 | + self::removeFromDir($dir.'/'.$object, true); |
|
28 | 28 | } else { |
29 | - unlink($dir . '/' . $object); |
|
29 | + unlink($dir.'/'.$object); |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public function alert($message) |
22 | 22 | { |
23 | 23 | if (!headers_sent()) { |
24 | - setcookie('__alert__', $message . '|' . $this->color, time() + 3600 * 24 * 30, '/'); |
|
24 | + setcookie('__alert__', $message.'|'.$this->color, time() + 3600 * 24 * 30, '/'); |
|
25 | 25 | return true; |
26 | 26 | } |
27 | 27 | return false; |