@@ -16,7 +16,7 @@ |
||
16 | 16 | $primitive = $typeRef->getDefinition(); |
17 | 17 | assert($primitive instanceof IPrimitiveType); |
18 | 18 | return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->isSpatial() |
19 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
19 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function forType(): string |
@@ -37,7 +37,7 @@ |
||
37 | 37 | string $type = null |
38 | 38 | ): iterable { |
39 | 39 | assert( |
40 | - null === $term || $term instanceof ITerm || is_string($term), /** @phpstan-ignore-line */ |
|
40 | + null === $term || $term instanceof ITerm || is_string($term), /** @phpstan-ignore-line */ |
|
41 | 41 | '$term should be a string or instanceof iTerm' |
42 | 42 | ); |
43 | 43 | if (null === $term) { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | /** @var IVocabularyAnnotation $annotation */ |
19 | 19 | $annotation = $this; |
20 | 20 | return $annotation->getSerializationLocation($model) === |
21 | - EdmVocabularyAnnotationSerializationLocation::Inline() || null === $annotation->targetString(); |
|
21 | + EdmVocabularyAnnotationSerializationLocation::Inline() || null === $annotation->targetString(); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function targetString(): ?string |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $references[] = $reference; |
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 |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | return; |
310 | 310 | } |
311 | 311 | if (file_exists('XmlCharType.bin')) { |
312 | - $file = fopen('XmlCharType.bin', 'rb'); |
|
312 | + $file = fopen('XmlCharType.bin', 'rb'); |
|
313 | 313 | if (is_resource($file)) { |
314 | 314 | self::$m_CharProperties = fopen('php://memory', 'w+b'); |
315 | 315 | stream_copy_to_stream($file, self::$m_CharProperties); |
@@ -334,9 +334,9 @@ discard block |
||
334 | 334 | private static function setProperties(string $ranges, int $value): void |
335 | 335 | { |
336 | 336 | assert(mb_strlen($ranges, 'UTF-8') % 2 === 0); |
337 | - for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p +=2) { |
|
337 | + for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p += 2) { |
|
338 | 338 | $str1 = mb_substr($ranges, $p, 1, 'UTF-8'); |
339 | - $str2 = mb_substr($ranges, $p+1, 1, 'UTF-8'); |
|
339 | + $str2 = mb_substr($ranges, $p + 1, 1, 'UTF-8'); |
|
340 | 340 | for ($i = mb_ord($str1), |
341 | 341 | $last = mb_ord($str2); $i <= $last; $i++) { |
342 | 342 | if (!isset(self::$s_CharProperties[$i])) { |