Test Setup Failed
Pull Request — master (#140)
by Christopher
05:30 queued 01:37
created
src/POData/Providers/Metadata/SimpleMetadataProvider.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function hasDerivedTypes(ResourceEntityType $resourceType)
206 206
     {
207
-        if(in_array($resourceType,$this->baseTypes)){
207
+        if (in_array($resourceType, $this->baseTypes)) {
208 208
             return true;
209 209
         }
210 210
         return false;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      *
275 275
      * @internal param string $namespace namespace of the data source
276 276
      */
277
-    public function addEntityType(\ReflectionClass $refClass, $name,$isAbstract = false, $baseType = null)
277
+    public function addEntityType(\ReflectionClass $refClass, $name, $isAbstract = false, $baseType = null)
278 278
     {
279 279
         $result = $this->createResourceType($refClass, $name, ResourceTypeKind::ENTITY(), $isAbstract, $baseType);
280 280
         assert($result instanceof ResourceEntityType);
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         if (array_key_exists($name, $this->resourceTypes)) {
301 301
             throw new InvalidOperationException('Type with same name already added');
302 302
         }
303
-        if(null !== $baseType){
303
+        if (null !== $baseType) {
304 304
             $baseTEntityType = $this->oDataEntityMap[$baseType->getFullName()];
305 305
             $this->baseTypes[] = $baseType;
306 306
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      */
205 205
     public function hasDerivedTypes(ResourceEntityType $resourceType)
206 206
     {
207
-        if(in_array($resourceType,$this->baseTypes)){
207
+        if(in_array($resourceType,$this->baseTypes)) {
208 208
             return true;
209 209
         }
210 210
         return false;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         if (array_key_exists($name, $this->resourceTypes)) {
301 301
             throw new InvalidOperationException('Type with same name already added');
302 302
         }
303
-        if(null !== $baseType){
303
+        if(null !== $baseType) {
304 304
             $baseTEntityType = $this->oDataEntityMap[$baseType->getFullName()];
305 305
             $this->baseTypes[] = $baseType;
306 306
         }
Please login to merge, or discard this patch.