@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function __construct($variableModel, $cacheRepository, $app = null) |
28 | 28 | { |
29 | - if (! $app) { |
|
30 | - $app = app(); //Fallback when $app is not given |
|
29 | + if (!$app) { |
|
30 | + $app = app(); //Fallback when $app is not given |
|
31 | 31 | } |
32 | 32 | $this->app = $app; |
33 | 33 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | if ($this->variables === null) { |
62 | 62 | |
63 | - $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function () { |
|
63 | + $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function() { |
|
64 | 64 | return $this->getCollection(); |
65 | 65 | }); |
66 | 66 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | try { |
96 | 96 | return $this->variableModel->select('key', 'value', 'locale')->get(); |
97 | 97 | } catch (\Exception $exception) { |
98 | - $this->app['log']->info(__CLASS__ . ' - ' . $exception->getMessage()); |
|
98 | + $this->app['log']->info(__CLASS__.' - '.$exception->getMessage()); |
|
99 | 99 | |
100 | 100 | return null; |
101 | 101 | } |