@@ -33,7 +33,7 @@ |
||
| 33 | 33 | break; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - return null !== $termKindError ? [ $termKindError ] : null; |
|
| 36 | + return null !== $termKindError ? [$termKindError] : null; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function forType(): string |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | break; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return null !== $typeKindError ? [$typeKindError ] : null; |
|
| 101 | + return null !== $typeKindError ? [$typeKindError] : null; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | public function forType(): string |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | $thisTypeKeys = array_keys($thisFunction->getParameters()); |
| 146 | 146 | $otherTypeKeys = array_keys($otherFunction->getParameters()); |
| 147 | - $keyCount = count($thisTypeKeys); |
|
| 147 | + $keyCount = count($thisTypeKeys); |
|
| 148 | 148 | for ($i = 0; $i < $keyCount; ++$i) { |
| 149 | 149 | if (!self::isEquivalentTo( |
| 150 | 150 | $thisFunction->getParameters()[$thisTypeKeys[$i]], |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | $thisTypeKeys = array_keys($thisType->getDeclaredProperties()); |
| 209 | 209 | $otherTypeKeys = array_keys($otherType->getDeclaredProperties()); |
| 210 | - $keyCount = count($thisTypeKeys); |
|
| 210 | + $keyCount = count($thisTypeKeys); |
|
| 211 | 211 | for ($i = 0; $i < $keyCount; ++$i) { |
| 212 | 212 | if (!self::isEquivalentTo( |
| 213 | 213 | $thisType->getDeclaredProperties()[$thisTypeKeys[$i]], |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $annotation, |
| 52 | 52 | EdmConstants::InternalUri, |
| 53 | 53 | CsdlConstants::AnnotationSerializationLocationAnnotation, |
| 54 | - (object)$location |
|
| 54 | + (object) $location |
|
| 55 | 55 | ); |
| 56 | 56 | } |
| 57 | 57 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $this->lookup[ExpressionKind::ValueTermReference()->getValue()] = IValueTermReferenceExpression::class; |
| 62 | 62 | $this->lookup[ExpressionKind::EntitySetReference()->getValue()] = IEntitySetReferenceExpression::class; |
| 63 | 63 | $this->lookup[ExpressionKind::EnumMemberReference()->getValue()] = IEnumMemberReferenceExpression::class; |
| 64 | - $this->lookup[ExpressionKind::If()->getValue()] = IIfExpression::class; |
|
| 64 | + $this->lookup[ExpressionKind::If ()->getValue()] = IIfExpression::class; |
|
| 65 | 65 | $this->lookup[ExpressionKind::AssertType()->getValue()] = IAssertTypeExpression::class; |
| 66 | 66 | $this->lookup[ExpressionKind::IsType()->getValue()] = IIsTypeExpression::class; |
| 67 | 67 | $this->lookup[ExpressionKind::FunctionApplication()->getValue()] = IApplyExpression::class; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | /** @var EdmModelVisitor $this */ |
| 36 | 36 | switch ($element->getSchemaElementKind()) { |
| 37 | - case SchemaElementKind::Function(): |
|
| 37 | + case SchemaElementKind::Function (): |
|
| 38 | 38 | assert($element instanceof IFunction); |
| 39 | 39 | $this->processFunction($element); |
| 40 | 40 | break; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function visitAnnotations(iterable $annotations): void |
| 29 | 29 | { |
| 30 | 30 | /** @var EdmModelVisitor $this */ |
| 31 | - self::visitCollection($annotations, [$this,'visitAnnotation']); |
|
| 31 | + self::visitCollection($annotations, [$this, 'visitAnnotation']); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | */ |
| 48 | 48 | public function getExpressionKind(): ExpressionKind |
| 49 | 49 | { |
| 50 | - return ExpressionKind::If(); |
|
| 50 | + return ExpressionKind::If (); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function __construct() |
| 21 | 21 | { |
| 22 | 22 | $this->lookup[SchemaElementKind::TypeDefinition()->getKey()] = ISchemaType::class; |
| 23 | - $this->lookup[SchemaElementKind::Function()->getKey()] = IFunction::class; |
|
| 23 | + $this->lookup[SchemaElementKind::Function ()->getKey()] = IFunction::class; |
|
| 24 | 24 | $this->lookup[SchemaElementKind::ValueTerm()->getKey()] = IValueTerm::class; |
| 25 | 25 | $this->lookup[SchemaElementKind::EntityContainer()->getKey()] = IEntityContainer::class; |
| 26 | 26 | } |