Passed
Pull Request — master (#40)
by Alex
03:15
created
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfISchemaElement.php 1 patch
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
                 {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                         );
35 35
                         break;
36 36
 
37
-                    case SchemaElementKind::Function():
37
+                    case SchemaElementKind::Function ():
38 38
                         InterfaceValidator::CollectErrors(
39 39
                             InterfaceValidator::CheckForInterfaceKindValueMismatchError(
40 40
                                 $item,
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
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         }
21 21
         else
22 22
         {
23
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value") ];
23
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value")];
24 24
         }
25 25
     }
26 26
 
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfITypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 }
33 33
         else
34 34
         {
35
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, "Definition")];
35
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, "Definition")];
36 36
         }
37 37
     }
38 38
 
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
 
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfIEntityContainerElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                 break;
25 25
 
26 26
             case ContainerElementKind::FunctionImport():
27
-                $termKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($item, $item->getContainerElementKind(),"ContainerElementKind", IFunctionImport::class);
27
+                $termKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($item, $item->getContainerElementKind(), "ContainerElementKind", IFunctionImport::class);
28 28
                 break;
29 29
 
30 30
             case ContainerElementKind::None():
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                 break;
35 35
         }
36 36
 
37
-        return $termKindError != null ? [ $termKindError ] : null;
37
+        return $termKindError != null ? [$termKindError] : null;
38 38
     }
39 39
 
40 40
     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
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         }
21 21
         else
22 22
         {
23
-            return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEntitySet") ];
23
+            return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEntitySet")];
24 24
         }
25 25
     }
26 26
 
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
                     }
29 29
                     else
30 30
                     {
31
-                        $references[] =$property->getPartner();
31
+                        $references[] = $property->getPartner();
32 32
                     }
33 33
 
34 34
                     if ($property->getPartner()->getPartner() !== $property || $property->getPartner() === $property)
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIStructuredType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             /**
28 28
              * @var IStructuredType|null $currentBaseType
29 29
              */
30
-            for ( $currentBaseType = $type->getBaseType(); $currentBaseType != null; $currentBaseType = $currentBaseType->getBaseType())
30
+            for ($currentBaseType = $type->getBaseType(); $currentBaseType != null; $currentBaseType = $currentBaseType->getBaseType())
31 31
             {
32 32
                 if (in_array($currentBaseType, $visitedTypes))
33 33
                 {
Please login to merge, or discard this patch.
Edm/Validation/Internal/InterfaceValidator/VisitorOfIRowTypeReference.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
     protected function VisitT($typeRef, array &$followup, array &$references): iterable
15 15
     {
16 16
         assert($typeRef instanceof IRowTypeReference);
17
-        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind() != TypeKind::Row() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
17
+        return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind() != TypeKind::Row() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
18 18
     }
19 19
 
20 20
     public function forType(): string
Please login to merge, or discard this patch.