Test Setup Failed
Pull Request — master (#140)
by Christopher
09:30
created
src/POData/Providers/Metadata/SimpleMetadataProvider.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      *
271 271
      * @internal param string $namespace namespace of the data source
272 272
      */
273
-    public function addEntityType(\ReflectionClass $refClass, $name,$isAbstract = false, $baseType = null)
273
+    public function addEntityType(\ReflectionClass $refClass, $name, $isAbstract = false, $baseType = null)
274 274
     {
275 275
         $result = $this->createResourceType($refClass, $name, ResourceTypeKind::ENTITY(), $isAbstract, $baseType);
276 276
         assert($result instanceof ResourceEntityType);
@@ -296,12 +296,12 @@  discard block
 block discarded – undo
296 296
         if (array_key_exists($name, $this->resourceTypes)) {
297 297
             throw new InvalidOperationException('Type with same name already added');
298 298
         }
299
-        if(null !== $baseType){
299
+        if (null !== $baseType) {
300 300
             $baseType = $this->oDataEntityMap[$baseType->getFullName()];
301 301
         }
302 302
         $type = null;
303 303
         if ($typeKind == ResourceTypeKind::ENTITY()) {
304
-            list($oet, $entitySet) = $this->metadataManager->addEntityType($name,$baseType,$isAbstract);
304
+            list($oet, $entitySet) = $this->metadataManager->addEntityType($name, $baseType, $isAbstract);
305 305
             assert($oet instanceof TEntityTypeType, 'Entity type ' . $name . ' not successfully added');
306 306
             $type = new ResourceEntityType($refClass, $oet, $this);
307 307
             $typeName = $type->getFullName();
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
         if (array_key_exists($name, $this->resourceTypes)) {
297 297
             throw new InvalidOperationException('Type with same name already added');
298 298
         }
299
-        if(null !== $baseType){
299
+        if(null !== $baseType) {
300 300
             $baseType = $this->oDataEntityMap[$baseType->getFullName()];
301 301
         }
302 302
         $type = null;
Please login to merge, or discard this patch.