Passed
Push — master ( 7de9ea...5e4ab8 )
by Vasyl
03:26
created
src/VariableManager.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.