Passed
Pull Request — master (#156)
by Alex
04:51
created
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.
IFunctionImport/FunctionImportEntityTypeDoesNotMatchEntitySet.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
         assert($functionImport instanceof IFunctionImport);
27 27
         if ($functionImport->getEntitySet() != null && $functionImport->getReturnType() != null) {
28 28
             $elementType = $functionImport->getReturnType()->IsCollection() ?
29
-                $functionImport->getReturnType()->AsCollection()->ElementType() :
30
-                $functionImport->getReturnType();
29
+                $functionImport->getReturnType()->AsCollection()->ElementType() : $functionImport->getReturnType();
31 30
             if ($elementType->IsEntity()) {
32 31
                 $returnedEntityType = $elementType->AsEntity()->EntityDefinition();
33 32
 
Please login to merge, or discard this patch.
IFunctionImport/FunctionImportUnsupportedReturnTypeAfterV1.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
         assert($functionImport instanceof IFunctionImport);
24 24
         if ($functionImport->getReturnType() != null) {
25 25
             $elementType = $functionImport->getReturnType()->IsCollection() ?
26
-                $functionImport->getReturnType()->AsCollection()->ElementType() :
27
-                $functionImport->getReturnType();
26
+                $functionImport->getReturnType()->AsCollection()->ElementType() : $functionImport->getReturnType();
28 27
             if (
29 28
                 !$elementType->IsPrimitive() &&
30 29
                 !$elementType->IsEntity() &&
Please login to merge, or discard this patch.
IVocabularyAnnotation/VocabularyAnnotationInaccessibleTarget.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
         $target      = $annotation->getTarget();
35 35
         $foundTarget = false;
36 36
 
37
-        $entityContainer = $target ;
37
+        $entityContainer = $target;
38 38
         if ($entityContainer instanceof IEntityContainer) {
39 39
             $foundTarget = ($context->getModel()->findEntityContainer($entityContainer->FullName()) != null);
40 40
         } else {
41
-            $entitySet = $target ;
41
+            $entitySet = $target;
42 42
             if ($entitySet instanceof IEntitySet) {
43 43
                 $container = $entitySet->getContainer();
44 44
                 if ($container != null && $context instanceof IEntityContainer) {
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
                 if ($schemaType != null && $schemaType instanceof ISchemaType) {
50 50
                     $foundTarget = ($context->getModel()->FindType($schemaType->FullName()) != null);
51 51
                 } else {
52
-                    $term = $target ;
52
+                    $term = $target;
53 53
                     if ($term != null && $term instanceof ITerm) {
54
-                        $foundTarget = ($context->getModel()->FindValueTerm($term->FullName())!= null);
54
+                        $foundTarget = ($context->getModel()->FindValueTerm($term->FullName()) != null);
55 55
                     } else {
56 56
                         $function = $target;
57 57
                         if ($function != null && $function instanceof IFunction) {
Please login to merge, or discard this patch.