@@ -45,11 +45,11 @@ |
||
45 | 45 | */ |
46 | 46 | public function get(string $key, $default = null) |
47 | 47 | { |
48 | - if (isset($this->all()[$key])) { |
|
49 | - return $this->all()[$key]; |
|
50 | - } |
|
48 | + if (isset($this->all()[$key])) { |
|
49 | + return $this->all()[$key]; |
|
50 | + } |
|
51 | 51 | |
52 | - return $default; |
|
52 | + return $default; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -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 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | { |
60 | 60 | if ($this->variables === null) { |
61 | 61 | |
62 | - $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function () { |
|
62 | + $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function() { |
|
63 | 63 | return $this->getCollection(); |
64 | 64 | }); |
65 | 65 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | try { |
100 | 100 | return $this->variableModel->select('key', 'value', 'locale')->get(); |
101 | 101 | } catch (\Exception $exception) { |
102 | - $this->app['log']->info(__CLASS__ . ': ' . $exception->getMessage()); |
|
102 | + $this->app['log']->info(__CLASS__.': '.$exception->getMessage()); |
|
103 | 103 | |
104 | 104 | return false; |
105 | 105 | } |