@@ -195,9 +195,9 @@ discard block |
||
195 | 195 | public function getDerivedTypes(ResourceEntityType $resourceType) |
196 | 196 | { |
197 | 197 | $ret = []; |
198 | - foreach($this->resourceTypes as $rType){ |
|
198 | + foreach ($this->resourceTypes as $rType) { |
|
199 | 199 | $baseTEntityType = $this->oDataEntityMap[$resourceType->getFullName()]; |
200 | - if($rType->getBaseType() == $baseTEntityType->getName() ){ |
|
200 | + if ($rType->getBaseType() == $baseTEntityType->getName()) { |
|
201 | 201 | $ret[] = $rType; |
202 | 202 | } |
203 | 203 | } |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | */ |
212 | 212 | public function hasDerivedTypes(ResourceEntityType $resourceType) |
213 | 213 | { |
214 | - if(in_array($resourceType,$this->baseTypes)){ |
|
214 | + if (in_array($resourceType, $this->baseTypes)) { |
|
215 | 215 | return true; |
216 | 216 | } |
217 | 217 | return false; |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * |
282 | 282 | * @internal param string $namespace namespace of the data source |
283 | 283 | */ |
284 | - public function addEntityType(\ReflectionClass $refClass, $name,$isAbstract = false, $baseType = null) |
|
284 | + public function addEntityType(\ReflectionClass $refClass, $name, $isAbstract = false, $baseType = null) |
|
285 | 285 | { |
286 | 286 | $result = $this->createResourceType($refClass, $name, ResourceTypeKind::ENTITY(), $isAbstract, $baseType); |
287 | 287 | assert($result instanceof ResourceEntityType); |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | if (null !== $baseType) { |
311 | 311 | $baseTEntityType = $this->oDataEntityMap[$baseType->getFullName()]; |
312 | 312 | $this->baseTypes[] = $baseType; |
313 | - } else { |
|
313 | + } else { |
|
314 | 314 | $baseTEntityType = null; |
315 | 315 | } |
316 | 316 |
@@ -195,9 +195,9 @@ discard block |
||
195 | 195 | public function getDerivedTypes(ResourceEntityType $resourceType) |
196 | 196 | { |
197 | 197 | $ret = []; |
198 | - foreach($this->resourceTypes as $rType){ |
|
198 | + foreach($this->resourceTypes as $rType) { |
|
199 | 199 | $baseTEntityType = $this->oDataEntityMap[$resourceType->getFullName()]; |
200 | - if($rType->getBaseType() == $baseTEntityType->getName() ){ |
|
200 | + if($rType->getBaseType() == $baseTEntityType->getName() ) { |
|
201 | 201 | $ret[] = $rType; |
202 | 202 | } |
203 | 203 | } |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | */ |
212 | 212 | public function hasDerivedTypes(ResourceEntityType $resourceType) |
213 | 213 | { |
214 | - if(in_array($resourceType,$this->baseTypes)){ |
|
214 | + if(in_array($resourceType,$this->baseTypes)) { |
|
215 | 215 | return true; |
216 | 216 | } |
217 | 217 | return false; |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | if (null !== $baseType) { |
311 | 311 | $baseTEntityType = $this->oDataEntityMap[$baseType->getFullName()]; |
312 | 312 | $this->baseTypes[] = $baseType; |
313 | - } else { |
|
313 | + } else { |
|
314 | 314 | $baseTEntityType = null; |
315 | 315 | } |
316 | 316 |