Test Failed
Pull Request — master (#74)
by Christopher
04:39
created
src/POData/Providers/Metadata/SimpleMetadataProvider.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -507,7 +507,7 @@
 block discarded – undo
507 507
         if($resourcePropertyKind == ResourcePropertyKind::RESOURCESET_REFERENCE){
508 508
 
509 509
             $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName()],"*",$name,$this->OdataEntityMap[$targetResourceType->getFullName()],"*");
510
-        }else{
510
+        } else{
511 511
             $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName],"0..1",$name,$this->OdataEntityMap[$targetResourceType->getFullName()],"0..1");
512 512
         }
513 513
         $this->associationSets[$setKey] = $set;
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     {
218 218
         $this->containerName = $containerName;
219 219
         $this->namespaceName = $namespaceName;
220
-        $this->metadataManager = new MetadataManager($namespaceName,$containerName);
220
+        $this->metadataManager = new MetadataManager($namespaceName, $containerName);
221 221
     }
222 222
 
223 223
     /**
@@ -439,8 +439,8 @@  discard block
 block discarded – undo
439 439
 
440 440
         $resourceProperty = new ResourceProperty($name, null, $kind, $primitiveResourceType);
441 441
         $resourceType->addProperty($resourceProperty);
442
-        if(array_key_exists($resourceType->getFullName(), $this->OdataEntityMap)){
443
-            $this->metadataManager->addPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName()],$name,$primitiveResourceType->getFullName(),null,false,$isKey);
442
+        if (array_key_exists($resourceType->getFullName(), $this->OdataEntityMap)) {
443
+            $this->metadataManager->addPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName()], $name, $primitiveResourceType->getFullName(), null, false, $isKey);
444 444
         }
445 445
     }
446 446
 
@@ -503,11 +503,11 @@  discard block
 block discarded – undo
503 503
             new ResourceAssociationSetEnd($sourceResourceSet, $resourceType, $resourceProperty),
504 504
             new ResourceAssociationSetEnd($targetResourceSet, $targetResourceType, null)
505 505
         );
506
-        if($resourcePropertyKind == ResourcePropertyKind::RESOURCESET_REFERENCE){
506
+        if ($resourcePropertyKind == ResourcePropertyKind::RESOURCESET_REFERENCE) {
507 507
 
508
-            $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName()],"*",$name,$this->OdataEntityMap[$targetResourceType->getFullName()],"*");
509
-        }else{
510
-            $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName],"0..1",$name,$this->OdataEntityMap[$targetResourceType->getFullName()],"0..1");
508
+            $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName()], "*", $name, $this->OdataEntityMap[$targetResourceType->getFullName()], "*");
509
+        } else {
510
+            $this->metadataManager->addNavigationPropertyToEntityType($this->OdataEntityMap[$resourceType->getFullName], "0..1", $name, $this->OdataEntityMap[$targetResourceType->getFullName()], "0..1");
511 511
         }
512 512
         $this->associationSets[$setKey] = $set;
513 513
     }
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         $this->resourceTypes[$name] = $entityType;
539 539
         ksort($this->resourceTypes);
540 540
 
541
-        if($typeKind ==  ResourceTypeKind::ENTITY){
541
+        if ($typeKind == ResourceTypeKind::ENTITY) {
542 542
             $this->OdataEntityMap[$entityType->getFullName()] = $this->metadataManager->addEntityType($name);
543 543
         }
544 544
 
Please login to merge, or discard this patch.