@@ -754,7 +754,7 @@ discard block |
||
| 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 |
||
| 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 | } |