@@ -45,7 +45,7 @@ |
||
45 | 45 | * @param bool $isOpen denotes if the type is open |
46 | 46 | * @param IEntityType $baseStructuredType the base type of this entity type |
47 | 47 | */ |
48 | - public function __construct(string $namespaceName, string $name, bool $isAbstract =false, bool $isOpen= true, IEntityType $baseStructuredType = null) |
|
48 | + public function __construct(string $namespaceName, string $name, bool $isAbstract = false, bool $isOpen = true, IEntityType $baseStructuredType = null) |
|
49 | 49 | { |
50 | 50 | parent::__construct($isAbstract, $isOpen, $baseStructuredType); |
51 | 51 | $this->namespaceName = $namespaceName; |
@@ -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 | */ |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param string|null $defaultValueString the default value of this property |
39 | 39 | * @param ConcurrencyMode|null $concurrencyMode the concurrency mode of this property |
40 | 40 | */ |
41 | - public function __construct(IStructuredType $declaringType, string $name, ITypeReference $type, string $defaultValueString = null, ConcurrencyMode $concurrencyMode= null) |
|
41 | + public function __construct(IStructuredType $declaringType, string $name, ITypeReference $type, string $defaultValueString = null, ConcurrencyMode $concurrencyMode = null) |
|
42 | 42 | { |
43 | 43 | parent::__construct($declaringType, $name, $type); |
44 | 44 | $this->defaultValueString = $defaultValueString; |
@@ -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 | { |
@@ -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 | } |