@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | // If we don't have the applied function we just assume that it will work. |
| 200 | 200 | $discoveredErrors = []; |
| 201 | 201 | return true; |
| 202 | - case ExpressionKind::If(): |
|
| 202 | + case ExpressionKind::If (): |
|
| 203 | 203 | assert($expression instanceof IIfExpression); |
| 204 | 204 | return self::TryAssertIfAsType($expression, $type, $context, $matchExactly, $discoveredErrors); |
| 205 | 205 | case ExpressionKind::IsType(): |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | iterable &$discoveredErrors |
| 298 | 298 | ): bool { |
| 299 | 299 | if (!$type->IsPrimitive()) { |
| 300 | - $discoveredErrors = [ |
|
| 300 | + $discoveredErrors = [ |
|
| 301 | 301 | new EdmError( |
| 302 | 302 | $expression->Location(), |
| 303 | 303 | EdmErrorCode::PrimitiveConstantExpressionNotValidForNonPrimitiveType(), |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | return self::TryAssertIntegerConstantInRange( |
| 758 | 758 | $expression, |
| 759 | 759 | (int)-9223372036854775808, |
| 760 | - (int)999999999999, |
|
| 760 | + (int) 999999999999, |
|
| 761 | 761 | $discoveredErrors |
| 762 | 762 | ); |
| 763 | 763 | case PrimitiveTypeKind::Int32(): |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | $discoveredErrors |
| 790 | 790 | ); |
| 791 | 791 | default: |
| 792 | - $discoveredErrors = [ |
|
| 792 | + $discoveredErrors = [ |
|
| 793 | 793 | new EdmError( |
| 794 | 794 | $expression->Location(), |
| 795 | 795 | EdmErrorCode::ExpressionPrimitiveKindNotValidForAssertedType(), |
@@ -909,7 +909,7 @@ discard block |
||
| 909 | 909 | |
| 910 | 910 | if ($expressionType->getTypeKind()->isPrimitive() && $assertedType->getTypeKind()->isPrimitive()) { |
| 911 | 911 | $primitiveExpressionType = $expressionType; |
| 912 | - $primitiveAssertedType = $assertedType ; |
|
| 912 | + $primitiveAssertedType = $assertedType; |
|
| 913 | 913 | assert($primitiveExpressionType instanceof IPrimitiveType); |
| 914 | 914 | assert($primitiveAssertedType instanceof IPrimitiveType); |
| 915 | 915 | if (!self::PromotesTo( |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @var EdmModelVisitor $this |
| 39 | 39 | */ |
| 40 | 40 | switch ($element->getSchemaElementKind()) { |
| 41 | - case SchemaElementKind::Function(): |
|
| 41 | + case SchemaElementKind::Function (): |
|
| 42 | 42 | assert($element instanceof IFunction); |
| 43 | 43 | $this->processFunction($element); |
| 44 | 44 | break; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @var EdmModelVisitor $this |
| 39 | 39 | */ |
| 40 | 40 | switch ($element->getSchemaElementKind()) { |
| 41 | - case SchemaElementKind::Function(): |
|
| 41 | + case SchemaElementKind::function(): |
|
| 42 | 42 | assert($element instanceof IFunction); |
| 43 | 43 | $this->processFunction($element); |
| 44 | 44 | break; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * @var EdmModelVisitor $this |
| 32 | 32 | */ |
| 33 | - self::visitCollection($annotations, [$this,'visitAnnotation']); |
|
| 33 | + self::visitCollection($annotations, [$this, 'visitAnnotation']); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |