Passed
Pull Request — master (#156)
by Alex
02:44
created
src/ModelVisitorConcerns/VisitElements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     {
35 35
         /** @var EdmModelVisitor $this */
36 36
         switch ($element->getSchemaElementKind()) {
37
-            case SchemaElementKind::Function():
37
+            case SchemaElementKind::Function ():
38 38
                 assert($element instanceof IFunction);
39 39
                 $this->processFunction($element);
40 40
                 break;
Please login to merge, or discard this patch.
src/ModelVisitorConcerns/VisitAnnotations.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
     public function visitAnnotations(iterable $annotations): void
29 29
     {
30 30
         /** @var EdmModelVisitor $this */
31
-        self::visitCollection($annotations, [$this,'visitAnnotation']);
31
+        self::visitCollection($annotations, [$this, 'visitAnnotation']);
32 32
     }
33 33
 
34 34
     /**
Please login to merge, or discard this patch.
src/Edm/Validation/ValidationContext.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,14 +51,12 @@
 block discarded – undo
51 51
         );
52 52
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts. */
53 53
         assert(
54
-            (is_array($isBad) ? new ReflectionMethod(...$isBad) :
55
-                new ReflectionFunction($isBad))->getParameters()[0]->getType()->getName() === IEdmElement::class,
54
+            (is_array($isBad) ? new ReflectionMethod(...$isBad) : new ReflectionFunction($isBad))->getParameters()[0]->getType()->getName() === IEdmElement::class,
56 55
             '$isBad should be a callable taking one parameter of Type IEdmElement'
57 56
         );
58 57
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts. */
59 58
         assert(
60
-            (is_array($isBad) ? new ReflectionMethod(...$isBad) :
61
-                new ReflectionFunction($isBad))->getReturnType()->getName() === 'bool',
59
+            (is_array($isBad) ? new ReflectionMethod(...$isBad) : new ReflectionFunction($isBad))->getReturnType()->getName() === 'bool',
62 60
             '$isBad should be a callable returning a boolean'
63 61
         );
64 62
         $this->model = $model;
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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         assert($typeRef instanceof IEnumTypeReference);
16 16
         return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->isEnum()
17
-            ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
17
+            ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
18 18
     }
19 19
 
20 20
     public function forType(): string
Please login to merge, or discard this patch.
Validation/Internal/InterfaceValidator/VisitorOfISpatialTypeReference.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
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19 19
         return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->IsSpatial()
20
-            ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
20
+            ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
21 21
     }
22 22
 
23 23
     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
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         assert($item instanceof INamedElement);
16 16
         return null !== $item->getName()
17
-            ? null : [ InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name') ];
17
+            ? null : [InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name')];
18 18
     }
19 19
 
20 20
     public function forType(): string
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 null !== $typeRef->getDefinition() &&
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
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $primitive = $typeRef->getDefinition();
18 18
         assert($primitive instanceof IPrimitiveType);
19 19
         return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->isBinary()
20
-            ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null;
20
+            ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
21 21
     }
22 22
 
23 23
     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
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 break;
99 99
         }
100 100
 
101
-        return null !== $typeKindError ? [$typeKindError ] : null;
101
+        return null !== $typeKindError ? [$typeKindError] : null;
102 102
     }
103 103
 
104 104
     public function forType(): string
Please login to merge, or discard this patch.