Passed
Push — master ( b6f366...fc6f44 )
by Karel
15:03
created
src/Models/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Chuck/ModuleRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.