@@ -17,7 +17,7 @@ |
||
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | 19 | return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->isDecimal() |
20 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $followup[] = $value->getValue(); |
18 | 18 | return null; |
19 | 19 | } else { |
20 | - return [ InterfaceValidator::createPropertyMustNotBeNullError($value, 'Value') ]; |
|
20 | + return [InterfaceValidator::createPropertyMustNotBeNullError($value, 'Value')]; |
|
21 | 21 | } |
22 | 22 | } |
23 | 23 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | assert($typeRef instanceof IEntityTypeReference); |
16 | 16 | |
17 | 17 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->isEntity() |
18 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
18 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | 19 | return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->isBinary() |
20 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -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 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($typeRef instanceof IComplexTypeReference); |
16 | 16 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->isComplex() |
17 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
17 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function forType(): string |
@@ -20,11 +20,11 @@ |
||
20 | 20 | } |
21 | 21 | public static function getCycleSentinel(): ?stdClass |
22 | 22 | { |
23 | - return (object)[]; |
|
23 | + return (object) []; |
|
24 | 24 | } |
25 | 25 | public static function getSecondPassCycleSentinel(): ?stdClass |
26 | 26 | { |
27 | - return (object)[]; |
|
27 | + return (object) []; |
|
28 | 28 | } |
29 | 29 | public static function getBoxed(bool $value) |
30 | 30 | { |
@@ -94,8 +94,8 @@ |
||
94 | 94 | $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmxVersion(), StringConst::Serializer_UnknownEdmxVersion())]; |
95 | 95 | return false; |
96 | 96 | } |
97 | - } elseif (! $edmxVersion = CsdlConstants::edmToEdmxVersions($model->getEdmVersion() ?? Version::v3())) { |
|
98 | - $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmVersion(), StringConst::Serializer_UnknownEdmVersion()) ]; |
|
97 | + } elseif (!$edmxVersion = CsdlConstants::edmToEdmxVersions($model->getEdmVersion() ?? Version::v3())) { |
|
98 | + $errors = [new EdmError(new CsdlLocation(0, 0), EdmErrorCode::UnknownEdmVersion(), StringConst::Serializer_UnknownEdmVersion())]; |
|
99 | 99 | return false; |
100 | 100 | } |
101 | 101 |
@@ -1298,7 +1298,7 @@ discard block |
||
1298 | 1298 | |
1299 | 1299 | // Association Set |
1300 | 1300 | if (!($this->model->getAssociationSetName($thisEntitySet, $thisNavprop) == |
1301 | - $this->model->getAssociationSetName($thatEntitySet, $thatNavprop) && |
|
1301 | + $this->model->getAssociationSetName($thatEntitySet, $thatNavprop) && |
|
1302 | 1302 | $this->model->getAssociationFullName($thisNavprop) == $this->model->getAssociationFullName($thatNavprop))) { |
1303 | 1303 | return false; |
1304 | 1304 | } |
@@ -1320,7 +1320,7 @@ discard block |
||
1320 | 1320 | |
1321 | 1321 | if (null !== $thisOtherEntitySet) { |
1322 | 1322 | if (!($this->model->getAssociationEndName($thisNavprop->getPartner()) == |
1323 | - $this->model->getAssociationEndName($thatNavprop->getPartner()) && |
|
1323 | + $this->model->getAssociationEndName($thatNavprop->getPartner()) && |
|
1324 | 1324 | $thisOtherEntitySet->getName() == $thatOtherEntitySet->getName())) { |
1325 | 1325 | return false; |
1326 | 1326 | } |
@@ -132,8 +132,7 @@ discard block |
||
132 | 132 | $alias = null; |
133 | 133 | if ($this->namespaceAliasMappings != null) { |
134 | 134 | $alias = array_key_exists($element->getNamespace(), $this->namespaceAliasMappings) ? |
135 | - $this->namespaceAliasMappings[$element->getNamespace()] : |
|
136 | - null; |
|
135 | + $this->namespaceAliasMappings[$element->getNamespace()] : null; |
|
137 | 136 | } |
138 | 137 | |
139 | 138 | $this->schemaWriter->writeSchemaElementHeader($element, $alias, $mappings); |
@@ -609,7 +608,7 @@ discard block |
||
609 | 608 | protected function processPropertyReferenceExpression(IPropertyReferenceExpression $expression): void |
610 | 609 | { |
611 | 610 | $this->beginElement($expression, [$this->schemaWriter, 'writePropertyReferenceExpressionElementHeader']); |
612 | - if ($expression->getBase()!= null) { |
|
611 | + if ($expression->getBase() != null) { |
|
613 | 612 | $this->visitExpression($expression->getBase()); |
614 | 613 | } |
615 | 614 | |
@@ -1208,10 +1207,10 @@ discard block |
||
1208 | 1207 | return false; |
1209 | 1208 | } |
1210 | 1209 | |
1211 | - $thisAssociationAnnotations =[]; |
|
1210 | + $thisAssociationAnnotations = []; |
|
1212 | 1211 | $thisEnd1Annotations = []; |
1213 | - $thisEnd2Annotations =[]; |
|
1214 | - $thisConstraintAnnotations =[]; |
|
1212 | + $thisEnd2Annotations = []; |
|
1213 | + $thisConstraintAnnotations = []; |
|
1215 | 1214 | $this->model->getAssociationAnnotations( |
1216 | 1215 | $thisPrimary, |
1217 | 1216 | $thisAssociationAnnotations, |
@@ -1223,7 +1222,7 @@ discard block |
||
1223 | 1222 | $thatAssociationAnnotations = []; |
1224 | 1223 | $thatEnd1Annotations = []; |
1225 | 1224 | $thatEnd2Annotations = []; |
1226 | - $thatConstraintAnnotations =[]; |
|
1225 | + $thatConstraintAnnotations = []; |
|
1227 | 1226 | $this->model->getAssociationAnnotations( |
1228 | 1227 | $thatPrimary, |
1229 | 1228 | $thatAssociationAnnotations, |
@@ -1268,7 +1267,7 @@ discard block |
||
1268 | 1267 | if (null === $theseProperties || null === $thoseProperties) { |
1269 | 1268 | return false; |
1270 | 1269 | } |
1271 | - $numProp = count($theseProperties); |
|
1270 | + $numProp = count($theseProperties); |
|
1272 | 1271 | if ($numProp != count($thoseProperties)) { |
1273 | 1272 | return false; |
1274 | 1273 | } |
@@ -1339,8 +1338,8 @@ discard block |
||
1339 | 1338 | ); |
1340 | 1339 | |
1341 | 1340 | $thatAssociationSetAnnotations = []; |
1342 | - $thatEnd1Annotations =[]; |
|
1343 | - $thatEnd2Annotations =[]; |
|
1341 | + $thatEnd1Annotations = []; |
|
1342 | + $thatEnd2Annotations = []; |
|
1344 | 1343 | $this->model->getAssociationSetAnnotations( |
1345 | 1344 | $thatEntitySet, |
1346 | 1345 | $thatNavprop, |