@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * @var array<IDependent> |
31 | 31 | */ |
32 | - protected $dependents =[]; |
|
32 | + protected $dependents = []; |
|
33 | 33 | /** |
34 | 34 | * @var ITypeReference |
35 | 35 | */ |
@@ -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 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function getExpression(): IExpression |
44 | 44 | { |
45 | - $expression = $this->expressionCache->getValue($this, [$this,'ComputeExpression']); |
|
45 | + $expression = $this->expressionCache->getValue($this, [$this, 'ComputeExpression']); |
|
46 | 46 | assert($expression instanceof IExpression); |
47 | 47 | return $expression; |
48 | 48 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function getType(): ?ITypeReference |
75 | 75 | { |
76 | - return $this->type->getValue($this, [$this,'ComputeType']); |
|
76 | + return $this->type->getValue($this, [$this, 'ComputeType']); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -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 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function __construct(string $namespaceName, string $name, $type) |
39 | 39 | { |
40 | - $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true): $type; |
|
40 | + $type = ($type instanceof PrimitiveTypeKind) ? EdmCoreModel::getInstance()->GetPrimitive($type, true) : $type; |
|
41 | 41 | assert($type instanceof ITypeReference); |
42 | 42 | parent::__construct($name); |
43 | 43 | $this->type = $type; |
@@ -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; |
@@ -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 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | if ($isUnbounded && $maxLength !== null) { |
52 | 52 | throw new InvalidOperationException(StringConst::EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull()); |
53 | 53 | } |
54 | - $this->isUnbounded =$isUnbounded; |
|
54 | + $this->isUnbounded = $isUnbounded; |
|
55 | 55 | $this->maxLength = $maxLength; |
56 | 56 | $this->isFixedLength = $isFixedLength; |
57 | 57 | $this->isUnicode = $isUnicode; |