@@ -78,8 +78,7 @@ discard block |
||
78 | 78 | $summary = null, |
79 | 79 | $longDescription = null, |
80 | 80 | $pluralName = null |
81 | - ) |
|
82 | - { |
|
81 | + ) { |
|
83 | 82 | $newEntity = new TEntityTypeType(); |
84 | 83 | $newEntity->setName($name); |
85 | 84 | $this->addDocumentation($summary, $longDescription, $newEntity); |
@@ -132,8 +131,7 @@ discard block |
||
132 | 131 | $nullable = false, |
133 | 132 | $summary = null, |
134 | 133 | $longDescription = null |
135 | - ) |
|
136 | - { |
|
134 | + ) { |
|
137 | 135 | if (is_array($defaultValue) || is_object($defaultValue)) { |
138 | 136 | throw new \InvalidArgumentException('Default value cannot be object or array'); |
139 | 137 | } |
@@ -175,8 +173,7 @@ discard block |
||
175 | 173 | $storeGeneratedPattern = null, |
176 | 174 | $summary = null, |
177 | 175 | $longDescription = null |
178 | - ) |
|
179 | - { |
|
176 | + ) { |
|
180 | 177 | $newProperty = new TEntityPropertyType(); |
181 | 178 | $newProperty->setName($name); |
182 | 179 | $newProperty->setType($type); |
@@ -231,8 +228,7 @@ discard block |
||
231 | 228 | $principalLongDescription = null, |
232 | 229 | $dependentSummery = null, |
233 | 230 | $dependentLongDescription = null |
234 | - ) |
|
235 | - { |
|
231 | + ) { |
|
236 | 232 | $principalEntitySetName = self::getResourceSetNameFromResourceType($principalType->getName()); |
237 | 233 | $dependentEntitySetName = self::getResourceSetNameFromResourceType($dependentType->getName()); |
238 | 234 | $relationName = $principalType->getName() . '_' . $principalProperty . '_' |
@@ -310,8 +306,7 @@ discard block |
||
310 | 306 | $dependentMultiplicity, |
311 | 307 | array $principalConstraintProperty = null, |
312 | 308 | array $dependentConstraintProperty = null |
313 | - ) |
|
314 | - { |
|
309 | + ) { |
|
315 | 310 | $multCombo = ['*' => ['*', '1', '0..1'], '0..1' => ['1', '*'], '1' => ['*', '0..1']]; |
316 | 311 | $multKeys = array_keys($multCombo); |
317 | 312 | if (null != $dependentNavigationProperty) { |
@@ -393,8 +388,7 @@ discard block |
||
393 | 388 | TAssociationType $association, |
394 | 389 | $principalEntitySetName, |
395 | 390 | $dependentEntitySetName |
396 | - ) |
|
397 | - { |
|
391 | + ) { |
|
398 | 392 | $as = new AssociationSetAnonymousType(); |
399 | 393 | $name = $association->getName(); |
400 | 394 | $as->setName($name); |
@@ -435,8 +429,7 @@ discard block |
||
435 | 429 | EntitySetAnonymousType $entitySet = null, |
436 | 430 | TTextType $shortDesc = null, |
437 | 431 | TTextType $longDesc = null |
438 | - ) |
|
439 | - { |
|
432 | + ) { |
|
440 | 433 | if (!($expectedReturnType instanceof TEntityTypeType) && !($expectedReturnType instanceof TComplexTypeType)) { |
441 | 434 | $msg = 'Expected return type must be either TEntityType or TComplexType'; |
442 | 435 | throw new \InvalidArgumentException($msg); |