@@ -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 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | if ($useCache === false) { |
| 49 | 49 | $var = $this->variableModel->where('key', $key) |
| 50 | - ->when($this->locale, function ($q) { |
|
| 50 | + ->when($this->locale, function($q) { |
|
| 51 | 51 | $q->where('locale', $this->locale); |
| 52 | 52 | }) |
| 53 | 53 | ->first(); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function all(): array |
| 77 | 77 | { |
| 78 | - $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function () { |
|
| 78 | + $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function() { |
|
| 79 | 79 | return $this->getCollection(); |
| 80 | 80 | }); |
| 81 | 81 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | try { |
| 119 | 119 | return $this->variableModel->select('key', 'value', 'locale')->get(); |
| 120 | 120 | } catch (\Exception $exception) { |
| 121 | - $this->app['log']->info(__CLASS__ . ': ' . $exception->getMessage()); |
|
| 121 | + $this->app['log']->info(__CLASS__.': '.$exception->getMessage()); |
|
| 122 | 122 | |
| 123 | 123 | return false; |
| 124 | 124 | } |