Passed
Push — master ( 5ced3c...e2e0f6 )
by Prateek
04:02 queued 02:02
created
src/Models/Module.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function __construct($module)
16 16
     {
17
-        $this->module = (object)$module;
17
+        $this->module = (object) $module;
18 18
         $this->data   = $this->module->data;
19 19
         $this->name   = $this->module->name;
20 20
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function getForeignColumns($type = 'all')
57 57
     {
58
-        if(is_array($type))
58
+        if (is_array($type))
59 59
             $types = $type;
60 60
         else
61 61
             $types = ($type == "all") ? ['parent', 'related'] : [$type];
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,10 +55,11 @@
 block discarded – undo
55 55
 
56 56
     public function getForeignColumns($type = 'all')
57 57
     {
58
-        if(is_array($type))
59
-            $types = $type;
60
-        else
61
-            $types = ($type == "all") ? ['parent', 'related'] : [$type];
58
+        if(is_array($type)) {
59
+                    $types = $type;
60
+        } else {
61
+                    $types = ($type == "all") ? ['parent', 'related'] : [$type];
62
+        }
62 63
         
63 64
         $data = [];
64 65
         foreach ($this->data as $column => $optionString) {
Please login to merge, or discard this patch.