@@ -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 |