Completed
Pull Request — master (#11)
by bloveless
02:20
created
src/Setting/SettingRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $setting = $this->get($key);
103 103
 
104
-        if($setting) {
104
+        if ($setting) {
105 105
             return $setting->getValue();
106 106
         }
107 107
 
@@ -155,6 +155,6 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function findAllByNamespace($namespace)
157 157
     {
158
-        return $this->model->where('key', 'LIKE', $namespace . '%')->get();
158
+        return $this->model->where('key', 'LIKE', $namespace.'%')->get();
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
src/Setting/Command/GetSettingDefaultValue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
         $namespace = $parts[0];
45 45
         $key       = $parts[1];
46 46
 
47
-        if (!$fields = $config->get($namespace . '::settings/settings')) {
48
-            $fields = $config->get($namespace . '::settings');
47
+        if (!$fields = $config->get($namespace.'::settings/settings')) {
48
+            $fields = $config->get($namespace.'::settings');
49 49
         }
50 50
 
51
-        $defaultValue = array_get($fields, $key . '.config.default_value', null);
51
+        $defaultValue = array_get($fields, $key.'.config.default_value', null);
52 52
 
53 53
         /**
54 54
          * If it is a closure, run it through the IoC container
Please login to merge, or discard this patch.