Passed
Pull Request — master (#156)
by Alex
07:16
created
Validation/Internal/InterfaceValidator/VisitorOfIPrimitiveTypeReference.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($typeRef, array &$followup, array &$references): iterable
14 14
     {
15 15
         assert($typeRef instanceof IPrimitiveTypeReference);
16
-        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
16
+        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
17 17
     }
18 18
 
19 19
     public function forType(): string
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIEntityContainerElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 break;
34 34
         }
35 35
 
36
-        return $termKindError != null ? [ $termKindError ] : null;
36
+        return $termKindError != null ? [$termKindError] : null;
37 37
     }
38 38
 
39 39
     public function forType(): string
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIExpression.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IEnumMemberReferenceExpression::class);
125 125
                     break;
126 126
 
127
-                case ExpressionKind::If():
127
+                case ExpressionKind::If ():
128 128
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IIfExpression::class);
129 129
                     break;
130 130
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             }
155 155
         }
156 156
 
157
-        return $expressionKindError != null ? [ $expressionKindError ] : null;
157
+        return $expressionKindError != null ? [$expressionKindError] : null;
158 158
     }
159 159
 
160 160
     public function forType(): string
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IGuidConstantExpression::class);
85 85
                     break;
86 86
 
87
-                case ExpressionKind::Null():
87
+                case ExpressionKind::null():
88 88
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', INullExpression::class);
89 89
                     break;
90 90
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IEnumMemberReferenceExpression::class);
125 125
                     break;
126 126
 
127
-                case ExpressionKind::If():
127
+                case ExpressionKind::if():
128 128
                     $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IIfExpression::class);
129 129
                     break;
130 130
 
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfIStructuredTypeReference.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($typeRef, array &$followup, array &$references): iterable
14 14
     {
15 15
         assert($typeRef instanceof IStructuredTypeReference);
16
-        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
16
+        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
17 17
     }
18 18
 
19 19
     public function forType(): string
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfISchemaElement.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     protected function VisitT($item, array &$followup, array &$references): iterable
19 19
     {
20 20
         assert($item instanceof ISchemaElement);
21
-        $errors =[];
21
+        $errors = [];
22 22
 
23 23
         switch ($item->getSchemaElementKind()) {
24 24
                     case SchemaElementKind::TypeDefinition():
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                         );
34 34
                         break;
35 35
 
36
-                    case SchemaElementKind::Function():
36
+                    case SchemaElementKind::Function ():
37 37
                         InterfaceValidator::CollectErrors(
38 38
                             InterfaceValidator::CheckForInterfaceKindValueMismatchError(
39 39
                                 $item,
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                         );
34 34
                         break;
35 35
 
36
-                    case SchemaElementKind::Function():
36
+                    case SchemaElementKind::function():
37 37
                         InterfaceValidator::CollectErrors(
38 38
                             InterfaceValidator::CheckForInterfaceKindValueMismatchError(
39 39
                                 $item,
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfITemporalTypeReference.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 ITemporalTypeReference);
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19
-        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
19
+        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
20 20
     }
21 21
 
22 22
     public function forType(): string
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIComplexTypeReference.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($typeRef, array &$followup, array &$references): iterable
14 14
     {
15 15
         assert($typeRef instanceof IComplexTypeReference);
16
-        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isComplex() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
16
+        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isComplex() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
17 17
     }
18 18
 
19 19
     public function forType(): string
Please login to merge, or discard this patch.
Edm/Validation/Internal/InterfaceValidator/VisitorOfINavigationProperty.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
             if (!in_array($property->getPartner(), $property->getPartner()->getDeclaringType()->getDeclaredProperties())) {
25 25
                 $followup[] = $property->getPartner();
26 26
             } else {
27
-                $references[] =$property->getPartner();
27
+                $references[] = $property->getPartner();
28 28
             }
29 29
 
30 30
             if ($property->getPartner()->getPartner() !== $property || $property->getPartner() === $property) {
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIStringTypeReference.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 IStringTypeReference);
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19
-        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isString() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
19
+        return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isString() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
20 20
     }
21 21
 
22 22
     public function forType(): string
Please login to merge, or discard this patch.