@@ -28,11 +28,11 @@ |
||
| 28 | 28 | |
| 29 | 29 | public function getSettingsAttribute() |
| 30 | 30 | { |
| 31 | - if(!array_key_exists('admin', $this->json)) { |
|
| 31 | + if (!array_key_exists('admin', $this->json)) { |
|
| 32 | 32 | return array(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - if(!array_key_exists('settings', $this->json['admin'])) { |
|
| 35 | + if (!array_key_exists('settings', $this->json['admin'])) { |
|
| 36 | 36 | return array(); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | // updateOrCreate the module |
| 12 | 12 | $find = Module::where('slug', $array['slug'])->first(); |
| 13 | 13 | |
| 14 | - if($find == null) { |
|
| 14 | + if ($find == null) { |
|
| 15 | 15 | $result = Module::create($array); |
| 16 | 16 | } else { |
| 17 | 17 | $result = $find->update($array); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public static function get($slug = null) |
| 24 | 24 | { |
| 25 | - if(!is_null($slug)) { |
|
| 25 | + if (!is_null($slug)) { |
|
| 26 | 26 | return Module::where('slug', $slug)->firstOrFail(); |
| 27 | 27 | } |
| 28 | 28 | |