Passed
Pull Request — master (#154)
by Alex
06:36
created
src/Models/MetadataTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
                     assert($stub->isOk(), 'Generated stub not consistent');
755 755
                     $stubs[$property] = $stub;
756 756
                     if (null !== $relGubbins['pivot']) {
757
-                        $fieldName = 'pivot_'.$relGubbins['property'];
757
+                        $fieldName = 'pivot_' . $relGubbins['property'];
758 758
                         $nuField = new EntityField();
759 759
                         $nuField->setName($fieldName);
760 760
                         $nuField->setFieldType(EntityFieldType::COMPLEX());
@@ -846,10 +846,10 @@  discard block
 block discarded – undo
846 846
         $pivotColumns = null;
847 847
         $pivot = [];
848 848
         if ($foo instanceof BelongsToMany) {
849
-            $arr = ((array)$foo);
849
+            $arr = ((array) $foo);
850 850
             $prefix = chr(0) . '*' . chr(0);
851 851
             $pivotColumns = $arr[$prefix . 'pivotColumns'];
852
-            $pivotTable = $arr[$prefix.'table'];
852
+            $pivotTable = $arr[$prefix . 'table'];
853 853
             foreach ($pivotColumns as $column) {
854 854
                 $pivot[$column] = [];
855 855
             }
Please login to merge, or discard this patch.