@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Anomaly\SettingsModule\Setting\Contract\SettingInterface; |
| 4 | 4 | use Anomaly\Streams\Platform\Addon\FieldType\FieldType; |
| 5 | -use Anomaly\Streams\Platform\Addon\FieldType\FieldTypeCollection; |
|
| 6 | 5 | use Illuminate\Contracts\Bus\SelfHandling; |
| 7 | 6 | use Illuminate\Foundation\Bus\DispatchesJobs; |
| 8 | 7 | |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | return [ |
| 28 | 28 | new \Twig_SimpleFunction( |
| 29 | 29 | 'setting_value', |
| 30 | - function ($key, $default = null) { |
|
| 30 | + function($key, $default = null) { |
|
| 31 | 31 | return $this->dispatch(new GetSettingValue($key, $default)); |
| 32 | 32 | } |
| 33 | 33 | ), |
| 34 | 34 | new \Twig_SimpleFunction( |
| 35 | 35 | 'setting', |
| 36 | - function ($key) { |
|
| 36 | + function($key) { |
|
| 37 | 37 | return (new Decorator())->decorate($this->dispatch(new GetSettingValueFieldType($key))); |
| 38 | 38 | } |
| 39 | 39 | ) |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | public function get($key, $default = null) |
| 57 | 57 | { |
| 58 | 58 | $setting = $this->settings->get($key); |
| 59 | - return ($setting)? $setting : $default; |
|
| 59 | + return ($setting) ? $setting : $default; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |