@@ -116,7 +116,7 @@ |
||
| 116 | 116 | protected function endElement(IEdmElement $element, string $method): void |
| 117 | 117 | { |
| 118 | 118 | $method = $this->sanitizeMethodName($method); |
| 119 | - $elementClone = $this->cloneElementContainer->offsetGet($element); |
|
| 119 | + $elementClone = $this->cloneElementContainer->offsetGet($element); |
|
| 120 | 120 | foreach ($this->visitors as $visitor) { |
| 121 | 121 | $visitor->{'end' . $method}($elementClone); |
| 122 | 122 | } |
@@ -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; |
@@ -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( |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | // Otherwise, changes to the dictionary durring serialization would result in an invalid or inconsistent output. |
| 43 | 43 | public function GetNamespaceAliases(): array |
| 44 | 44 | { |
| 45 | - return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ??[]; |
|
| 45 | + return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ?? []; |
|
| 46 | 46 | } |
| 47 | 47 | /** |
| 48 | 48 | * Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | */ |
| 248 | 248 | public function GetNamespacePrefixMappings(): array |
| 249 | 249 | { |
| 250 | - return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation)??[]; |
|
| 250 | + return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation) ?? []; |
|
| 251 | 251 | } |
| 252 | 252 | |
| 253 | 253 | |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | $navigationPropertyMappings = $model->GetAnnotationValue(SplObjectStorage::class, $entitySet, EdmConstants::InternalUri, CsdlConstants::AssociationSetNameAnnotation); |
| 400 | 400 | assert($navigationPropertyMappings instanceof SplObjectStorage || $navigationPropertyMappings === null); |
| 401 | 401 | if ($navigationPropertyMappings !== null && $navigationPropertyMappings->offsetExists($property)) { |
| 402 | - $associationSetName = $navigationPropertyMappings->offsetGet($property) ; |
|
| 402 | + $associationSetName = $navigationPropertyMappings->offsetGet($property); |
|
| 403 | 403 | } else { |
| 404 | 404 | $associationSetName = $model->GetAssociationName($property) . 'Set'; |
| 405 | 405 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | if (!in_array($property->getPartner(), $property->getPartner()->getDeclaringType()->getDeclaredProperties())) { |
| 25 | 25 | $followup[] = $property->getPartner(); |
| 26 | 26 | } else { |
| 27 | - $references[] =$property->getPartner(); |
|
| 27 | + $references[] = $property->getPartner(); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ($property->getPartner()->getPartner() !== $property || $property->getPartner() === $property) { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $references[] = $expression->getReferencedParameter(); |
| 18 | 18 | return null; |
| 19 | 19 | } else { |
| 20 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedParameter') ]; |
|
| 20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedParameter')]; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | assert($typeRef instanceof ICollectionTypeReference); |
| 16 | 16 | return $typeRef->getDefinition() != null && |
| 17 | 17 | !$typeRef->getDefinition()->getTypeKind()->IsCollection() ? |
| 18 | - [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)]: null; |
|
| 18 | + [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | assert($value instanceof IBinaryValue); |
| 16 | 16 | return $value->getValue() == null ? |
| 17 | - [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value') ] |
|
| 17 | + [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value')] |
|
| 18 | 18 | : |
| 19 | 19 | null; |
| 20 | 20 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | protected function VisitT($item, array &$followup, array &$references): iterable |
| 19 | 19 | { |
| 20 | 20 | assert($item instanceof ISchemaElement); |
| 21 | - $errors =[]; |
|
| 21 | + $errors = []; |
|
| 22 | 22 | |
| 23 | 23 | switch ($item->getSchemaElementKind()) { |
| 24 | 24 | case SchemaElementKind::TypeDefinition(): |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ); |
| 34 | 34 | break; |
| 35 | 35 | |
| 36 | - case SchemaElementKind::Function(): |
|
| 36 | + case SchemaElementKind::Function (): |
|
| 37 | 37 | InterfaceValidator::CollectErrors( |
| 38 | 38 | InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
| 39 | 39 | $item, |