Passed
Pull Request — master (#156)
by Alex
07:16
created
Validation/Internal/InterfaceValidator/VisitorOfISpatialTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         assert($typeRef instanceof ISpatialTypeReference);
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19
-        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
19
+        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
20 20
     }
21 21
 
22 22
     public function forType(): string
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfINamedElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     protected function VisitT($item, array &$followup, array &$references): iterable
14 14
     {
15 15
         assert($item instanceof INamedElement);
16
-        return $item->getName() != null ? null : [ InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name') ];
16
+        return $item->getName() != null ? null : [InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name')];
17 17
     }
18 18
 
19 19
     public function forType(): string
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfIFunctionReferenceExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             $references[] = $expression->getReferencedFunction();
25 25
             return null;
26 26
         } else {
27
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedFunction') ];
27
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedFunction')];
28 28
         }
29 29
     }
30 30
 
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfIEntitySetReferenceExpression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $references[] = $expression->getReferencedEntitySet();
18 18
             return null;
19 19
         } else {
20
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedEntitySet') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedEntitySet')];
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfICollectionTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         assert($typeRef instanceof ICollectionTypeReference);
16 16
         return $typeRef->getDefinition() != null &&
17 17
         !$typeRef->getDefinition()->getTypeKind()->IsCollection() ?
18
-            [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)]: null;
18
+            [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
19 19
     }
20 20
 
21 21
     public function forType(): string
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIBinaryTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         assert($typeRef instanceof IBinaryTypeReference);
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19
-        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isBinary() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
19
+        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isBinary() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
20 20
     }
21 21
 
22 22
     public function forType(): string
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                         break;
60 60
                 }
61 61
 
62
-        return $typeKindError != null ? [$typeKindError ] : null;
62
+        return $typeKindError != null ? [$typeKindError] : null;
63 63
     }
64 64
 
65 65
     public function forType(): string
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIDelayedValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $followup[] = $value->getValue();
18 18
             return null;
19 19
         } else {
20
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value')];
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIDecimalTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         assert($typeRef instanceof IDecimalTypeReference);
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19
-        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
19
+        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
20 20
     }
21 21
 
22 22
     public function forType(): string
Please login to merge, or discard this patch.