Completed
Pull Request — master (#137)
by Christopher
02:00
created
src/Providers/MetadataProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         }
132 132
         $metaCount = count($meta->oDataEntityMap);
133 133
         $entityCount = count($entities);
134
-        assert($metaCount == 2 * $entityCount + 1);
134
+        assert($metaCount == 2 * $entityCount+1);
135 135
 
136 136
         if (null === $objectModel->getAssociations()) {
137 137
             return;
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
@@ -131,10 +131,10 @@
 block discarded – undo
131 131
                 if (0 == count($lastCandidates)) {
132 132
                     continue;
133 133
                 }
134
-                foreach($lastCandidates as $lc){
134
+                foreach ($lastCandidates as $lc) {
135 135
                     $stub = clone $this->knownSides[$knownType][$key];
136 136
                     $isMulti = ($stub->getMultiplicity()->getValue() == \AlgoWeb\PODataLaravel\Models\ObjectMap\Entities\Associations\AssociationStubRelationType::MANY);
137
-                    $RelPolyTypeName = str_plural(substr($lc->getBaseType(),strrpos($lc->getBaseType(),"\\")+1),$isMulti?2:1);
137
+                    $RelPolyTypeName = str_plural(substr($lc->getBaseType(), strrpos($lc->getBaseType(), "\\")+1), $isMulti ? 2 : 1);
138 138
                     $stub->setRelationName($stub->getRelationName() . "_" . $RelPolyTypeName);
139 139
                     $assoc = new AssociationMonomorphic();
140 140
                     $first = -1 === $stub->compare($lc);
Please login to merge, or discard this patch.
src/Models/ObjectMap/Entities/EntityGubbins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
     {
194 194
         if ($association instanceof AssociationMonomorphic) {
195 195
             $stub = $isFirst ? $association->getFirst() : $association->getLast();
196
-            if (null === $stub || (!in_array($stub, $this->stubs) && $stub instanceof AssociationStubMonomorphic )) {
196
+            if (null === $stub || (!in_array($stub, $this->stubs) && $stub instanceof AssociationStubMonomorphic)) {
197 197
                 throw new \InvalidArgumentException('Association cannot be connected to this entity');
198 198
             }
199 199
             $propertyName = $stub->getRelationName();
Please login to merge, or discard this patch.