@@ -121,8 +121,9 @@ |
||
| 121 | 121 | |
| 122 | 122 | $config = $this->app['config']->get('jlourenco.support'); |
| 123 | 123 | |
| 124 | - if (array_get($config, 'Setting.autoAlias')) |
|
| 125 | - $this->app->alias('setting', 'jlourenco\support\Setting'); |
|
| 124 | + if (array_get($config, 'Setting.autoAlias')) { |
|
| 125 | + $this->app->alias('setting', 'jlourenco\support\Setting'); |
|
| 126 | + } |
|
| 126 | 127 | } |
| 127 | 128 | |
| 128 | 129 | /** |
@@ -174,8 +174,7 @@ |
||
| 174 | 174 | if (is_file($this->path.'/'.$this->filename)) |
| 175 | 175 | { |
| 176 | 176 | $this->settings = json_decode(file_get_contents($this->path.'/'.$this->filename), true); |
| 177 | - } |
|
| 178 | - else |
|
| 177 | + } else |
|
| 179 | 178 | { |
| 180 | 179 | $this->settings = array(); |
| 181 | 180 | } |
@@ -7,8 +7,9 @@ |
||
| 7 | 7 | { |
| 8 | 8 | $path = $this->getPath($namespace); |
| 9 | 9 | |
| 10 | - if (is_null($path)) |
|
| 11 | - return; |
|
| 10 | + if (is_null($path)) { |
|
| 11 | + return; |
|
| 12 | + } |
|
| 12 | 13 | |
| 13 | 14 | $file = (!$environment || ($environment == 'production')) ? "{$path}/{$group}.php" : "{$path}/{$environment}/{$group}.php"; |
| 14 | 15 | |