Completed
Pull Request — master (#137)
by Christopher
01:37
created
src/Providers/MetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Query/LaravelReadQuery.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@  discard block
 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);
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
      * @param string $odataProperty
501 501
      * @return string
502 502
      */
503
-    private function getLaravelRelationName($odataProperty){
503
+    private function getLaravelRelationName($odataProperty) {
504 504
         $laravelProperty = $odataProperty;
505 505
         $pos = strrpos($laravelProperty, '_');
506 506
         if ($pos !== false) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -500,7 +500,8 @@
 block discarded – undo
500 500
      * @param string $odataProperty
501 501
      * @return string
502 502
      */
503
-    private function getLaravelRelationName($odataProperty){
503
+    private function getLaravelRelationName($odataProperty)
504
+    {
504 505
         $laravelProperty = $odataProperty;
505 506
         $pos = strrpos($laravelProperty, '_');
506 507
         if ($pos !== false) {
Please login to merge, or discard this patch.
src/Models/MetadataGubbinsHolder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@
 block discarded – undo
134 134
                 foreach ($lastCandidates as $lc) {
135 135
                     $stub = clone $this->knownSides[$knownType][$key];
136 136
                     $isMulti = ($stub->getMultiplicity()->getValue() == AssociationStubRelationType::MANY);
137
-                    $relPolyTypeName = substr($lc->getBaseType(),strrpos($lc->getBaseType(),"\\")+1);
138
-                    $relPolyTypeName = str_plural($relPolyTypeName, $isMulti?2:1);
137
+                    $relPolyTypeName = substr($lc->getBaseType(), strrpos($lc->getBaseType(), "\\")+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.