@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getSchemaElementKind(): SchemaElementKind |
50 | 50 | { |
51 | - return SchemaElementKind::Function(); |
|
51 | + return SchemaElementKind::Function (); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getSchemaElementKind(): SchemaElementKind |
50 | 50 | { |
51 | - return SchemaElementKind::Function(); |
|
51 | + return SchemaElementKind::function(); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getSchemaElementKind(): SchemaElementKind |
50 | 50 | { |
51 | - return SchemaElementKind::Function(); |
|
51 | + return SchemaElementKind::Function (); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function getSchemaElementKind(): SchemaElementKind |
50 | 50 | { |
51 | - return SchemaElementKind::Function(); |
|
51 | + return SchemaElementKind::function(); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -334,7 +334,7 @@ |
||
334 | 334 | $str1 = mb_substr($ranges, $p, 1, 'UTF-8'); |
335 | 335 | $str2 = mb_substr($ranges, $p+1, 1, 'UTF-8'); |
336 | 336 | for ($i = mb_ord($str1), |
337 | - $last = mb_ord($str2); $i <= $last; $i++) { |
|
337 | + $last = mb_ord($str2); $i <= $last; $i++) { |
|
338 | 338 | if (!isset(self::$s_CharProperties[$i])) { |
339 | 339 | self::$s_CharProperties[$i] = $value; |
340 | 340 | } |
@@ -330,9 +330,9 @@ |
||
330 | 330 | private static function setProperties(string $ranges, int $value): void |
331 | 331 | { |
332 | 332 | assert(mb_strlen($ranges, 'UTF-8') % 2 === 0); |
333 | - for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p +=2) { |
|
333 | + for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p += 2) { |
|
334 | 334 | $str1 = mb_substr($ranges, $p, 1, 'UTF-8'); |
335 | - $str2 = mb_substr($ranges, $p+1, 1, 'UTF-8'); |
|
335 | + $str2 = mb_substr($ranges, $p + 1, 1, 'UTF-8'); |
|
336 | 336 | for ($i = mb_ord($str1), |
337 | 337 | $last = mb_ord($str2); $i <= $last; $i++) { |
338 | 338 | if (!isset(self::$s_CharProperties[$i])) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function offsetExists($offset) |
41 | 41 | { |
42 | - return is_int($offset) && 0 <= $offset && $offset < $this->length; |
|
42 | + return is_int($offset) && 0 <= $offset && $offset < $this->length; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function offsetSet($offset, $value) |
61 | 61 | { |
62 | - if (!is_int($value) || $value <0 || $value > 255) { |
|
62 | + if (!is_int($value) || $value < 0 || $value > 255) { |
|
63 | 63 | throw new \InvalidArgumentException(sprintf('%s is an invalid value for a ByteArray', $value)); |
64 | 64 | } |
65 | 65 | if ($this->readonly) { |
@@ -33,7 +33,7 @@ |
||
33 | 33 | break; |
34 | 34 | } |
35 | 35 | |
36 | - return null !== $termKindError ? [ $termKindError ] : null; |
|
36 | + return null !== $termKindError ? [$termKindError] : null; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function forType(): string |
@@ -98,7 +98,7 @@ |
||
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 |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | $thisTypeKeys = array_keys($thisFunction->getParameters()); |
146 | 146 | $otherTypeKeys = array_keys($otherFunction->getParameters()); |
147 | - $keyCount = count($thisTypeKeys); |
|
147 | + $keyCount = count($thisTypeKeys); |
|
148 | 148 | for ($i = 0; $i < $keyCount; ++$i) { |
149 | 149 | if (!self::isEquivalentTo( |
150 | 150 | $thisFunction->getParameters()[$thisTypeKeys[$i]], |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | $thisTypeKeys = array_keys($thisType->getDeclaredProperties()); |
209 | 209 | $otherTypeKeys = array_keys($otherType->getDeclaredProperties()); |
210 | - $keyCount = count($thisTypeKeys); |
|
210 | + $keyCount = count($thisTypeKeys); |
|
211 | 211 | for ($i = 0; $i < $keyCount; ++$i) { |
212 | 212 | if (!self::isEquivalentTo( |
213 | 213 | $thisType->getDeclaredProperties()[$thisTypeKeys[$i]], |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $annotation, |
52 | 52 | EdmConstants::InternalUri, |
53 | 53 | CsdlConstants::AnnotationSerializationLocationAnnotation, |
54 | - (object)$location |
|
54 | + (object) $location |
|
55 | 55 | ); |
56 | 56 | } |
57 | 57 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** @var IVocabularyAnnotation $annotation */ |
20 | 20 | $annotation = $this; |
21 | 21 | return $annotation->getSerializationLocation($model) == |
22 | - EdmVocabularyAnnotationSerializationLocation::Inline() || null === $annotation->targetString(); |
|
22 | + EdmVocabularyAnnotationSerializationLocation::Inline() || null === $annotation->targetString(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function targetString(): string |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $this->lookup[ExpressionKind::ValueTermReference()->getValue()] = IValueTermReferenceExpression::class; |
62 | 62 | $this->lookup[ExpressionKind::EntitySetReference()->getValue()] = IEntitySetReferenceExpression::class; |
63 | 63 | $this->lookup[ExpressionKind::EnumMemberReference()->getValue()] = IEnumMemberReferenceExpression::class; |
64 | - $this->lookup[ExpressionKind::If()->getValue()] = IIfExpression::class; |
|
64 | + $this->lookup[ExpressionKind::If ()->getValue()] = IIfExpression::class; |
|
65 | 65 | $this->lookup[ExpressionKind::AssertType()->getValue()] = IAssertTypeExpression::class; |
66 | 66 | $this->lookup[ExpressionKind::IsType()->getValue()] = IIsTypeExpression::class; |
67 | 67 | $this->lookup[ExpressionKind::FunctionApplication()->getValue()] = IApplyExpression::class; |
@@ -61,7 +61,9 @@ |
||
61 | 61 | $this->lookup[ExpressionKind::ValueTermReference()->getValue()] = IValueTermReferenceExpression::class; |
62 | 62 | $this->lookup[ExpressionKind::EntitySetReference()->getValue()] = IEntitySetReferenceExpression::class; |
63 | 63 | $this->lookup[ExpressionKind::EnumMemberReference()->getValue()] = IEnumMemberReferenceExpression::class; |
64 | - $this->lookup[ExpressionKind::If()->getValue()] = IIfExpression::class; |
|
64 | + $this->lookup[ExpressionKind::If() { |
|
65 | + ->getValue()] = IIfExpression::class; |
|
66 | + } |
|
65 | 67 | $this->lookup[ExpressionKind::AssertType()->getValue()] = IAssertTypeExpression::class; |
66 | 68 | $this->lookup[ExpressionKind::IsType()->getValue()] = IIsTypeExpression::class; |
67 | 69 | $this->lookup[ExpressionKind::FunctionApplication()->getValue()] = IApplyExpression::class; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $this->lookup[ExpressionKind::DecimalConstant()->getValue()] = IDecimalConstantExpression::class; |
52 | 52 | $this->lookup[ExpressionKind::FloatingConstant()->getValue()] = IFloatingConstantExpression::class; |
53 | 53 | $this->lookup[ExpressionKind::GuidConstant()->getValue()] = IGuidConstantExpression::class; |
54 | - $this->lookup[ExpressionKind::Null()->getValue()] = INullExpression::class; |
|
54 | + $this->lookup[ExpressionKind::null()->getValue()] = INullExpression::class; |
|
55 | 55 | $this->lookup[ExpressionKind::Record()->getValue()] = IRecordExpression::class; |
56 | 56 | $this->lookup[ExpressionKind::Collection()->getValue()] = ICollectionExpression::class; |
57 | 57 | $this->lookup[ExpressionKind::Path()->getValue()] = IPathExpression::class; |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $this->lookup[ExpressionKind::ValueTermReference()->getValue()] = IValueTermReferenceExpression::class; |
62 | 62 | $this->lookup[ExpressionKind::EntitySetReference()->getValue()] = IEntitySetReferenceExpression::class; |
63 | 63 | $this->lookup[ExpressionKind::EnumMemberReference()->getValue()] = IEnumMemberReferenceExpression::class; |
64 | - $this->lookup[ExpressionKind::If()->getValue()] = IIfExpression::class; |
|
64 | + $this->lookup[ExpressionKind::if()->getValue()] = IIfExpression::class; |
|
65 | 65 | $this->lookup[ExpressionKind::AssertType()->getValue()] = IAssertTypeExpression::class; |
66 | 66 | $this->lookup[ExpressionKind::IsType()->getValue()] = IIsTypeExpression::class; |
67 | 67 | $this->lookup[ExpressionKind::FunctionApplication()->getValue()] = IApplyExpression::class; |