@@ -132,7 +132,7 @@ |
||
132 | 132 | return [$element]; |
133 | 133 | } |
134 | 134 | |
135 | - return $element ; |
|
135 | + return $element; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | return []; |
@@ -20,11 +20,11 @@ |
||
20 | 20 | } |
21 | 21 | public static function getCycleSentinel(): ?stdClass |
22 | 22 | { |
23 | - return (object)[]; |
|
23 | + return (object) []; |
|
24 | 24 | } |
25 | 25 | public static function getSecondPassCycleSentinel(): ?stdClass |
26 | 26 | { |
27 | - return (object)[]; |
|
27 | + return (object) []; |
|
28 | 28 | } |
29 | 29 | public static function GetBoxed(bool $value) |
30 | 30 | { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | if (count($set1) != count($set2)) { |
97 | 97 | return false; |
98 | 98 | } |
99 | - for ($i = count($set1) -1; $i > -1; --$i) { |
|
99 | + for ($i = count($set1) - 1; $i > -1; --$i) { |
|
100 | 100 | if ($set1[$i] !== $set2[$i]) { |
101 | 101 | return false; |
102 | 102 | } |
@@ -13,7 +13,7 @@ |
||
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 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $references[] = $type->getEntityType(); |
18 | 18 | return null; |
19 | 19 | } else { |
20 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'EntityType') ]; |
|
20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'EntityType')]; |
|
21 | 21 | } |
22 | 22 | } |
23 | 23 |
@@ -17,7 +17,7 @@ |
||
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 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | return null; |
28 | 28 | } else { |
29 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'Definition')]; |
|
29 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'Definition')]; |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | assert($typeRef instanceof ISpatialTypeReference); |
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
19 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function forType(): string |
@@ -13,7 +13,7 @@ |
||
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 |