@@ -47,10 +47,11 @@ |
||
47 | 47 | $itemGenerator = new $generator($module); |
48 | 48 | $returnedFiles = $itemGenerator->generate(); |
49 | 49 | |
50 | - if (!is_array($returnedFiles)) |
|
51 | - $generatedFiles[] = $returnedFiles; |
|
52 | - else |
|
53 | - $generatedFiles = array_merge($generatedFiles, $returnedFiles); |
|
50 | + if (!is_array($returnedFiles)) { |
|
51 | + $generatedFiles[] = $returnedFiles; |
|
52 | + } else { |
|
53 | + $generatedFiles = array_merge($generatedFiles, $returnedFiles); |
|
54 | + } |
|
54 | 55 | |
55 | 56 | $bar->advance(); |
56 | 57 | } |
@@ -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) { |
@@ -39,8 +39,9 @@ |
||
39 | 39 | { |
40 | 40 | $dir = base_path($path); |
41 | 41 | |
42 | - if (!is_dir($dir)) |
|
43 | - $this->fileSystem->mkdir($dir, 0755); |
|
42 | + if (!is_dir($dir)) { |
|
43 | + $this->fileSystem->mkdir($dir, 0755); |
|
44 | + } |
|
44 | 45 | |
45 | 46 | return $dir; |
46 | 47 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | if (is_dir($src)) { |
14 | 14 | $this->mirror($src, $dest."/".basename($src)); |
15 | - }else{ |
|
15 | + } else{ |
|
16 | 16 | $this->copy($src, $dest); |
17 | 17 | } |
18 | 18 | } |
@@ -81,8 +81,12 @@ |
||
81 | 81 | $schema = $this->processSpecialSchema(); |
82 | 82 | } else { |
83 | 83 | foreach ($this->optionArray as $option) { |
84 | - if ($option == self::COLUMN_UNIQUE) $this->hasUnique(); |
|
85 | - if (is_numeric($option) && $option <= 2048) $this->hasSize((int) $option); |
|
84 | + if ($option == self::COLUMN_UNIQUE) { |
|
85 | + $this->hasUnique(); |
|
86 | + } |
|
87 | + if (is_numeric($option) && $option <= 2048) { |
|
88 | + $this->hasSize((int) $option); |
|
89 | + } |
|
86 | 90 | } |
87 | 91 | |
88 | 92 | $schema = '$table->'.$this->getColumnType()."('{$this->column}'"; |