@@ -52,7 +52,7 @@ |
||
52 | 52 | if ($isUnbounded && $maxLength !== null) { |
53 | 53 | throw new InvalidOperationException(StringConst::EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull()); |
54 | 54 | } |
55 | - $this->isUnbounded =$isUnbounded; |
|
55 | + $this->isUnbounded = $isUnbounded; |
|
56 | 56 | $this->maxLength = $maxLength; |
57 | 57 | $this->isFixedLength = $isFixedLength; |
58 | 58 | $this->isUnicode = $isUnicode; |
@@ -293,8 +293,7 @@ |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | $newAnnotation = $value != null ? |
296 | - new EdmDirectValueAnnotation($namespaceName, $localName, $value) : |
|
297 | - new EdmDirectValueAnnotation($namespaceName, $localName); |
|
296 | + new EdmDirectValueAnnotation($namespaceName, $localName, $value) : new EdmDirectValueAnnotation($namespaceName, $localName); |
|
298 | 297 | |
299 | 298 | if ($transientAnnotations == null) { |
300 | 299 | $transientAnnotations = $newAnnotation; |
@@ -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 | /** |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getExpressionKind(): ExpressionKind |
44 | 44 | { |
45 | - return ExpressionKind::Null(); |
|
45 | + return ExpressionKind::null(); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function getValueKind(): ValueKind |
52 | 52 | { |
53 | - return ValueKind::Null(); |
|
53 | + return ValueKind::null(); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function __construct($value, ?IEnumTypeReference $type = null) |
25 | 25 | { |
26 | 26 | parent::__construct($type); |
27 | - $value = $value instanceof IEnumMember ? $value->getValue(): $value; |
|
27 | + $value = $value instanceof IEnumMember ? $value->getValue() : $value; |
|
28 | 28 | assert($value instanceof IPrimitiveValue); |
29 | 29 | $this->value = $value; |
30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function __construct(array $errors) |
25 | 25 | { |
26 | 26 | parent::__construct($errors); |
27 | - $this->elementType = new BadTypeReference(new BadType($errors), true); |
|
27 | + $this->elementType = new BadTypeReference(new BadType($errors), true); |
|
28 | 28 | } |
29 | 29 | public function getTypeKind(): TypeKind |
30 | 30 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function addBinding(INamedElement $binding): void |
49 | 49 | { |
50 | 50 | if (!in_array($binding, $this->bindings)) { |
51 | - $this->bindings[] = $binding; |
|
51 | + $this->bindings[] = $binding; |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @var array<IDependent> |
29 | 29 | */ |
30 | - protected $dependents =[]; |
|
30 | + protected $dependents = []; |
|
31 | 31 | /** |
32 | 32 | * @var ITypeReference |
33 | 33 | */ |
@@ -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 []; |