@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $formRequest = new $formRequestEntity(); |
69 | 69 | if (method_exists($formRequest, ModelsInterface::MODEL_METHOD_RELATIONS)) { |
70 | 70 | $this->sourceCode .= PHP_EOL; |
71 | - $relations = $formRequest->relations(); |
|
71 | + $relations = $formRequest->relations(); |
|
72 | 72 | foreach ($relations as $relationEntity) { |
73 | 73 | $ucEntitty = MigrationsHelper::getObjectName($relationEntity); |
74 | 74 | // determine if ManyToMany, OneToMany, OneToOne rels |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** @var BaseFormRequest $formRequest * */ |
159 | 159 | $formRequest = new $formRequestEntity(); |
160 | 160 | if (method_exists($formRequest, ModelsInterface::MODEL_METHOD_RELATIONS)) { |
161 | - $relations = $formRequest->relations(); |
|
161 | + $relations = $formRequest->relations(); |
|
162 | 162 | $this->sourceCode .= PHP_EOL; // margin top from props |
163 | 163 | foreach ($relations as $relationEntity) { |
164 | 164 | $ucEntitty = ucfirst($relationEntity); |
@@ -24,10 +24,10 @@ discard block |
||
24 | 24 | $table = ''; |
25 | 25 | // make entity lc + underscore |
26 | 26 | $words = preg_split(self::PATTERN_SPLIT_UC, lcfirst($objectName)); |
27 | - foreach($words as $key => $word) |
|
27 | + foreach ($words as $key => $word) |
|
28 | 28 | { |
29 | 29 | $table .= $word; |
30 | - if(empty($words[$key + 1]) === false) |
|
30 | + if (empty($words[$key + 1]) === false) |
|
31 | 31 | { |
32 | 32 | $table .= PhpInterface::UNDERSCORE; |
33 | 33 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $table = ''; |
49 | 49 | // make entity lc + underscore |
50 | 50 | $words = preg_split(self::PATTERN_MERGE_UC, $tableName); |
51 | - foreach($words as $key => $word) |
|
51 | + foreach ($words as $key => $word) |
|
52 | 52 | { |
53 | 53 | $table .= ucfirst(str_replace(PhpInterface::UNDERSCORE, '', $word)); |
54 | 54 | } |