Passed
Push — master ( 1916ef...0eb677 )
by Vasyl
02:53
created
src/VariableManager.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
             return $var ? $var->value : $default;
55 55
         }
56 56
 
57
-       if (isset($this->all()[$key])) {
58
-           return $this->all()[$key];
59
-       }
57
+        if (isset($this->all()[$key])) {
58
+            return $this->all()[$key];
59
+        }
60 60
        
61
-       return $default;
61
+        return $default;
62 62
     }
63 63
 
64 64
     public function set(string $key, $value = null)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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();
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         if ($this->variables === null) {
79 79
 
80
-            $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function () {
80
+            $all = $this->cacheRepository->remember($this->config['cache']['name'], $this->config['cache']['time'], function() {
81 81
                 return $this->getCollection();
82 82
             });
83 83
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         try {
123 123
             return $this->variableModel->select('key', 'value', 'locale')->get();
124 124
         } catch (\Exception $exception) {
125
-            $this->app['log']->info(__CLASS__ . ': ' . $exception->getMessage());
125
+            $this->app['log']->info(__CLASS__.': '.$exception->getMessage());
126 126
 
127 127
             return false;
128 128
         }
Please login to merge, or discard this patch.