@@ -270,7 +270,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -296,7 +296,7 @@ |
||
| 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; |