Passed
Pull Request — master (#154)
by Alex
06:27
created
src/Models/MetadataGubbinsHolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
                     $stub = clone $this->knownSides[$knownType][$key];
136 136
                     $isMulti = ($stub->getMultiplicity()->getValue() == AssociationStubRelationType::MANY);
137 137
                     $relPolyTypeName = substr($lc->getBaseType(), strrpos($lc->getBaseType(), '\\')+1);
138
-                    $relPolyTypeName = str_plural($relPolyTypeName, $isMulti?2:1);
138
+                    $relPolyTypeName = str_plural($relPolyTypeName, $isMulti ? 2 : 1);
139 139
                     $stub->setRelationName($stub->getRelationName() . '_' . $relPolyTypeName);
140 140
                     $assoc = new AssociationMonomorphic();
141 141
                     $first = -1 === $stub->compare($lc);
Please login to merge, or discard this patch.
src/Query/LaravelReadQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@
 block discarded – undo
487 487
             assert(is_string($line), 'Eager-load elements must be non-empty strings');
488 488
             $lineParts = explode('/', $line);
489 489
             $numberOfParts = count($lineParts);
490
-            for ($i = 0; $i<$numberOfParts; $i++) {
490
+            for ($i = 0; $i < $numberOfParts; $i++) {
491 491
                 $lineParts[$i] = $this->getLaravelRelationName($lineParts[$i]);
492 492
             }
493 493
             $remixLine = implode('.', $lineParts);
Please login to merge, or discard this patch.
src/Providers/MetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         $metaCount = count($meta->oDataEntityMap);
143 143
         $entityCount = count($entities);
144 144
         $expected = 2 * $entityCount;
145
-        assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got '.$metaCount);
145
+        assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got ' . $metaCount);
146 146
 
147 147
         if (0 === count($objectModel->getAssociations())) {
148 148
             return;
Please login to merge, or discard this patch.
src/Models/MetadataTrait.php 1 patch
Spacing   +2 added lines, -2 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());
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
     {
846 846
         $pivotColumns = null;
847 847
         if ($foo instanceof BelongsToMany) {
848
-            $arr = ((array)$foo);
848
+            $arr = ((array) $foo);
849 849
             $prefix = chr(0) . '*' . chr(0);
850 850
             $pivotColumns = $arr[$prefix . 'pivotColumns'];
851 851
         }
Please login to merge, or discard this patch.