Completed
Push — master ( 66c45a...b9f89d )
by Alex
22s queued 18s
created
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.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         assert($function instanceof IFunction);
16 16
         // No need to return the return type as followup - it is handled as such in the IFunctionBase visitor.
17
-        return ($function->getParameters() === null) ? [ InterfaceValidator::CreatePropertyMustNotBeNullError($function, 'ReturnType') ] : null;
17
+        return ($function->getParameters() === null) ? [InterfaceValidator::CreatePropertyMustNotBeNullError($function, 'ReturnType')] : null;
18 18
     }
19 19
 
20 20
     public function forType(): string
Please login to merge, or discard this patch.
Edm/Validation/Internal/InterfaceValidator/VisitorOfIEnumTypeReference.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 IEnumTypeReference);
16
-        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEnum() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
16
+        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEnum() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
17 17
     }
18 18
 
19 19
     public function forType(): string
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.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfILabeledElement.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[] = $expression->getExpressionKind();
18 18
             return null;
19 19
         } else {
20
-            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'Expression') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'Expression')];
21 21
         }
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Edm/Validation/Internal/InterfaceValidator/VisitorOfIValueAnnotation.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[] = $annotation->getValue();
18 18
             return null;
19 19
         } else {
20
-            return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, 'Value') ];
20
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, 'Value')];
21 21
         }
22 22
     }
23 23
 
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.
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/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.