@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @param string $filename Cache filename. |
54 | 54 | */ |
55 | - public function loadData(string $section, string $location = null, string &$filename = null) |
|
55 | + public function loadData(string $section, string $location = null, string & $filename = null) |
|
56 | 56 | { |
57 | 57 | $filename = $this->memoryFilename($section, $location); |
58 | 58 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $filename = $this->memoryFilename($section, $location); |
76 | 76 | |
77 | 77 | //We are packing data into plain php |
78 | - $data = '<?php return ' . var_export($data, true) . ';'; |
|
78 | + $data = '<?php return '.var_export($data, true).';'; |
|
79 | 79 | |
80 | 80 | //We need help to write file with directory creation |
81 | 81 | $this->files->write($filename, $data, FilesInterface::RUNTIME, true); |
@@ -94,12 +94,12 @@ discard block |
||
94 | 94 | $name = strtolower(str_replace(['/', '\\'], '-', $name)); |
95 | 95 | |
96 | 96 | if (!empty($location)) { |
97 | - $location = $this->directory . $location . '/'; |
|
97 | + $location = $this->directory.$location.'/'; |
|
98 | 98 | } else { |
99 | 99 | $location = $this->directory; |
100 | 100 | } |
101 | 101 | |
102 | 102 | //Runtime cache |
103 | - return $location . $name . static::EXTENSION; |
|
103 | + return $location.$name.static::EXTENSION; |
|
104 | 104 | } |
105 | 105 | } |