@@ -39,6 +39,6 @@ |
||
| 39 | 39 | public function PrimitiveKind(): PrimitiveTypeKind |
| 40 | 40 | { |
| 41 | 41 | $primitive = $this->PrimitiveDefinition(); |
| 42 | - return $primitive !== null ? $primitive->getPrimitiveKind(): PrimitiveTypeKind::None(); |
|
| 42 | + return $primitive !== null ? $primitive->getPrimitiveKind() : PrimitiveTypeKind::None(); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | ); |
| 36 | 36 | }; |
| 37 | 37 | assert( |
| 38 | - $expectedReflection->getNumberOfRequiredParameters() === $actualReflection->getNumberOfRequiredParameters(), |
|
| 38 | + $expectedReflection->getNumberOfRequiredParameters() === $actualReflection->getNumberOfRequiredParameters(), |
|
| 39 | 39 | $messageBuilder('Incorrect Parameter Count') |
| 40 | 40 | ); |
| 41 | 41 | if ($expectedReflection->hasReturnType()) { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $parameterString = ''; |
| 86 | 86 | if ($parameter->hasType()) { |
| 87 | 87 | $parameterString .= $parameter->getType()->allowsNull() ? '?' : ''; |
| 88 | - $parameterString .=$parameter->getType()->getName() . ' '; |
|
| 88 | + $parameterString .= $parameter->getType()->getName() . ' '; |
|
| 89 | 89 | } |
| 90 | 90 | $parameterString .= $parameter->isVariadic() ? '...$' : '$'; |
| 91 | 91 | $parameterString .= $parameter->getName(); |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | assert($expression instanceof IGuidConstantExpression); |
| 111 | 111 | $this->processGuidConstantExpression($expression); |
| 112 | 112 | break; |
| 113 | - case ExpressionKind::If(): |
|
| 113 | + case ExpressionKind::If (): |
|
| 114 | 114 | assert($expression instanceof IIfExpression); |
| 115 | 115 | $this->processIfExpression($expression); |
| 116 | 116 | break; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | assert($expression instanceof IGuidConstantExpression); |
| 111 | 111 | $this->processGuidConstantExpression($expression); |
| 112 | 112 | break; |
| 113 | - case ExpressionKind::If(): |
|
| 113 | + case ExpressionKind::if(): |
|
| 114 | 114 | assert($expression instanceof IIfExpression); |
| 115 | 115 | $this->processIfExpression($expression); |
| 116 | 116 | break; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | assert($expression instanceof ILabeledExpression); |
| 135 | 135 | $this->processLabeledExpression($expression); |
| 136 | 136 | break; |
| 137 | - case ExpressionKind::Null(): |
|
| 137 | + case ExpressionKind::null(): |
|
| 138 | 138 | assert($expression instanceof INullExpression); |
| 139 | 139 | $this->processNullConstantExpression($expression); |
| 140 | 140 | break; |
@@ -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 | */ |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | /** |
| 168 | 168 | * @return string gets the namespace of this core model |
| 169 | 169 | */ |
| 170 | - public static function Namespace(): string |
|
| 170 | + public static function namespace(): string |
|
| 171 | 171 | { |
| 172 | 172 | return 'Edm'; |
| 173 | 173 | } |
@@ -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 | { |