@@ -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 | } |
@@ -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 | { |
@@ -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 | /** |
@@ -25,6 +25,6 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function __construct(?string $qualifiedName, ILocation $location) |
| 27 | 27 | { |
| 28 | - parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicComplex(), StringConst::Bad_CyclicComplex($qualifiedName)) ]); |
|
| 28 | + parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicComplex(), StringConst::Bad_CyclicComplex($qualifiedName))]); |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -20,6 +20,6 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function __construct(?string $qualifiedName, ILocation $location) |
| 22 | 22 | { |
| 23 | - parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicEntity(), StringConst::Bad_CyclicEntity($qualifiedName)) ]); |
|
| 23 | + parent::__construct($qualifiedName, [new EdmError($location, EdmErrorCode::BadCyclicEntity(), StringConst::Bad_CyclicEntity($qualifiedName))]); |
|
| 24 | 24 | } |
| 25 | 25 | } |
@@ -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 []; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | assert($expression instanceof IGuidConstantExpression); |
| 105 | 105 | $this->processGuidConstantExpression($expression); |
| 106 | 106 | break; |
| 107 | - case ExpressionKind::If(): |
|
| 107 | + case ExpressionKind::If (): |
|
| 108 | 108 | assert($expression instanceof IIfExpression); |
| 109 | 109 | $this->processIfExpression($expression); |
| 110 | 110 | break; |