@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | public function getSchemaElementKind(): SchemaElementKind |
102 | 102 | { |
103 | - return SchemaElementKind::Function(); |
|
103 | + return SchemaElementKind::Function (); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -47,7 +47,7 @@ |
||
47 | 47 | ) { |
48 | 48 | $qualifiedName = $element->FullName(); |
49 | 49 | switch ($element->getSchemaElementKind()) { |
50 | - case SchemaElementKind::Function(): |
|
50 | + case SchemaElementKind::Function (): |
|
51 | 51 | assert($element instanceof IFunction); |
52 | 52 | self::AddFunction($element, $qualifiedName, $functionGroupDictionary); |
53 | 53 | break; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | case $element instanceof IProperty: |
50 | 50 | assert($element instanceof IProperty); |
51 | 51 | $type = $element->getType(); |
52 | - return $element->getName() ?? '' . ':' . ($type !== null ? self::ToTraceString($type) :''); |
|
52 | + return $element->getName() ?? '' . ':' . ($type !== null ? self::ToTraceString($type) : ''); |
|
53 | 53 | case $element instanceof IEntityReferenceType: |
54 | 54 | assert($element instanceof IEntityReferenceType); |
55 | 55 | return TypeKind::EntityReference()->getKey() . '(' . ($element->getEntityType() !== null ? self::ToTraceString($element->getEntityType()) : '') . ')'; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | private static function AppendSpatialFacets(string $sb, ISpatialTypeReference $type): string |
168 | 168 | { |
169 | - $sb = self::AppendKeyValue($sb, EdmConstants::FacetName_Srid, $type->getSpatialReferenceIdentifier() != null ? $type->getSpatialReferenceIdentifier(): EdmConstants::Value_SridVariable); |
|
169 | + $sb = self::AppendKeyValue($sb, EdmConstants::FacetName_Srid, $type->getSpatialReferenceIdentifier() != null ? $type->getSpatialReferenceIdentifier() : EdmConstants::Value_SridVariable); |
|
170 | 170 | return $sb; |
171 | 171 | } |
172 | 172 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * @var IVocabularyAnnotation $annotation |
46 | 46 | */ |
47 | 47 | $annotation = $this; |
48 | - $model->SetAnnotationValue($annotation, EdmConstants::InternalUri, CsdlConstants::AnnotationSerializationLocationAnnotation, (object)$location); |
|
48 | + $model->SetAnnotationValue($annotation, EdmConstants::InternalUri, CsdlConstants::AnnotationSerializationLocationAnnotation, (object) $location); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $thisTypeKeys = array_keys($thisFunction->getParameters()); |
145 | 145 | $otherTypeKeys = array_keys($otherFunction->getParameters()); |
146 | - $keyCount = count($thisTypeKeys); |
|
146 | + $keyCount = count($thisTypeKeys); |
|
147 | 147 | for ($i = 0; $i < $keyCount; ++$i) { |
148 | 148 | if ( |
149 | 149 | !self::isEquivalentTo( |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | |
212 | 212 | $thisTypeKeys = array_keys($thisType->getDeclaredProperties()); |
213 | 213 | $otherTypeKeys = array_keys($otherType->getDeclaredProperties()); |
214 | - $keyCount = count($thisTypeKeys); |
|
214 | + $keyCount = count($thisTypeKeys); |
|
215 | 215 | for ($i = 0; $i < $keyCount; ++$i) { |
216 | 216 | if ( |
217 | 217 | !self::isEquivalentTo( |
@@ -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(); |
@@ -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; |
@@ -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; |