@@ -300,6 +300,10 @@ |
||
300 | 300 | return md5(json_encode($arg, JSON_FORCE_OBJECT) . $this->template . get_called_class()); |
301 | 301 | } |
302 | 302 | |
303 | + /** |
|
304 | + * @param string $key |
|
305 | + * @param \Closure $phpCode |
|
306 | + */ |
|
303 | 307 | private function cacheResult($key, $phpCode) |
304 | 308 | { |
305 | 309 | $cache = app()->make('cache'); |
@@ -175,7 +175,7 @@ |
||
175 | 175 | private function generateHtml(...$args) |
176 | 176 | { |
177 | 177 | // Everything inside this function is executed only when the cache is not available. |
178 | - $expensivePhpCode = function () use ($args) { |
|
178 | + $expensivePhpCode = function() use ($args) { |
|
179 | 179 | $this->prepareDataForView($args); |
180 | 180 | |
181 | 181 | // render the template with the resulting data. |