@@ -137,7 +137,7 @@  | 
                                                    ||
| 137 | 137 | $metaCount = count($meta->oDataEntityMap);  | 
                                                        
| 138 | 138 | $entityCount = count($entities);  | 
                                                        
| 139 | 139 | $expected = 2 * $entityCount;  | 
                                                        
| 140 | - assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got '.$metaCount);  | 
                                                        |
| 140 | + assert($metaCount == $expected, 'Expected ' . $expected . ' items, actually got ' . $metaCount);  | 
                                                        |
| 141 | 141 | |
| 142 | 142 |          if (null === $objectModel->getAssociations()) { | 
                                                        
| 143 | 143 | return;  | 
                                                        
@@ -487,7 +487,7 @@  | 
                                                    ||
| 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); | 
                                                        
@@ -133,7 +133,7 @@  | 
                                                    ||
| 133 | 133 |                  foreach ($lastCandidates as $lc) { | 
                                                        
| 134 | 134 | $stub = clone $this->knownSides[$knownType][$key];  | 
                                                        
| 135 | 135 | $isMulti = ($stub->getMultiplicity()->getValue() == \AlgoWeb\PODataLaravel\Models\ObjectMap\Entities\Associations\AssociationStubRelationType::MANY);  | 
                                                        
| 136 | - $RelPolyTypeName = str_plural(substr($lc->getBaseType(), strrpos($lc->getBaseType(), '\\')+1), $isMulti?2:1);  | 
                                                        |
| 136 | + $RelPolyTypeName = str_plural(substr($lc->getBaseType(), strrpos($lc->getBaseType(), '\\')+1), $isMulti ? 2 : 1);  | 
                                                        |
| 137 | 137 | $stub->setRelationName($stub->getRelationName() . '_' . $RelPolyTypeName);  | 
                                                        
| 138 | 138 | $assoc = new AssociationMonomorphic();  | 
                                                        
| 139 | 139 | $first = -1 === $stub->compare($lc);  |