Passed
Push — master ( 4de437...05d74c )
by Arthur
04:30
created
src/Blocks/Entities.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Helpers/MigrationsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.