@@ -14,7 +14,7 @@ discard block |
||
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 |
||
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]; |
@@ -55,10 +55,11 @@ |
||
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) { |