@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | if (0 == strlen(trim($namespace))) { |
| 65 | 65 | $entityTypeName = $NewEntity->getName(); |
| 66 | 66 | } else { |
| 67 | - $entityTypeName = $namespace . "." . $NewEntity->getName(); |
|
| 67 | + $entityTypeName = $namespace.".".$NewEntity->getName(); |
|
| 68 | 68 | } |
| 69 | 69 | $entitySet->setEntityType($entityTypeName); |
| 70 | 70 | $entitySet->setGetterAccess($accessType); |
@@ -105,11 +105,11 @@ discard block |
||
| 105 | 105 | $last_letter = strtolower($singular[strlen($singular) - 1]); |
| 106 | 106 | switch ($last_letter) { |
| 107 | 107 | case 'y': |
| 108 | - return substr($singular, 0, -1) . 'ies'; |
|
| 108 | + return substr($singular, 0, -1).'ies'; |
|
| 109 | 109 | case 's': |
| 110 | - return $singular . 'es'; |
|
| 110 | + return $singular.'es'; |
|
| 111 | 111 | default: |
| 112 | - return $singular . 's'; |
|
| 112 | + return $singular.'s'; |
|
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
@@ -184,21 +184,21 @@ discard block |
||
| 184 | 184 | $this->startEdmxTransaction(); |
| 185 | 185 | $principalEntitySetName = Str::plural($principalType->getName(), 2); |
| 186 | 186 | $dependentEntitySetName = Str::plural($dependentType->getName(), 2); |
| 187 | - $relationName = $principalType->getName() . "_" . $principalProperty . "_" |
|
| 188 | - . $dependentType->getName() . "_" . $dependentProperty; |
|
| 187 | + $relationName = $principalType->getName()."_".$principalProperty."_" |
|
| 188 | + . $dependentType->getName()."_".$dependentProperty; |
|
| 189 | 189 | $relationName = trim($relationName, "_"); |
| 190 | 190 | |
| 191 | 191 | $namespace = $this->V3Edmx->getDataServiceType()->getSchema()[0]->getNamespace(); |
| 192 | 192 | if (0 == strlen(trim($namespace))) { |
| 193 | 193 | $relationFQName = $relationName; |
| 194 | 194 | } else { |
| 195 | - $relationFQName = $namespace . "." . $relationName; |
|
| 195 | + $relationFQName = $namespace.".".$relationName; |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | $principalNavigationProperty = new TNavigationPropertyType(); |
| 199 | 199 | $principalNavigationProperty->setName($principalProperty); |
| 200 | - $principalNavigationProperty->setToRole(trim($dependentEntitySetName . "_" . $dependentProperty, "_")); |
|
| 201 | - $principalNavigationProperty->setFromRole($principalEntitySetName . "_" . $principalProperty); |
|
| 200 | + $principalNavigationProperty->setToRole(trim($dependentEntitySetName."_".$dependentProperty, "_")); |
|
| 201 | + $principalNavigationProperty->setFromRole($principalEntitySetName."_".$principalProperty); |
|
| 202 | 202 | $principalNavigationProperty->setRelationship($relationFQName); |
| 203 | 203 | $principalNavigationProperty->setGetterAccess($principalGetterAccess); |
| 204 | 204 | $principalNavigationProperty->setSetterAccess($principalSetterAccess); |
@@ -213,8 +213,8 @@ discard block |
||
| 213 | 213 | if (!empty($dependentProperty)) { |
| 214 | 214 | $dependentNavigationProperty = new TNavigationPropertyType(); |
| 215 | 215 | $dependentNavigationProperty->setName($dependentProperty); |
| 216 | - $dependentNavigationProperty->setToRole($principalEntitySetName . "_" . $principalProperty); |
|
| 217 | - $dependentNavigationProperty->setFromRole($dependentEntitySetName . "_" . $dependentProperty); |
|
| 216 | + $dependentNavigationProperty->setToRole($principalEntitySetName."_".$principalProperty); |
|
| 217 | + $dependentNavigationProperty->setFromRole($dependentEntitySetName."_".$dependentProperty); |
|
| 218 | 218 | $dependentNavigationProperty->setRelationship($relationFQName); |
| 219 | 219 | $dependentNavigationProperty->setGetterAccess($dependentGetterAccess); |
| 220 | 220 | $dependentNavigationProperty->setSetterAccess($dependentSetterAccess); |
@@ -285,8 +285,8 @@ discard block |
||
| 285 | 285 | $principalTypeFQName = $principalType->getName(); |
| 286 | 286 | $dependentTypeFQName = $dependentType->getName(); |
| 287 | 287 | } else { |
| 288 | - $principalTypeFQName = $namespace . "." . $principalType->getName(); |
|
| 289 | - $dependentTypeFQName = $namespace . "." . $dependentType->getName(); |
|
| 288 | + $principalTypeFQName = $namespace.".".$principalType->getName(); |
|
| 289 | + $dependentTypeFQName = $namespace.".".$dependentType->getName(); |
|
| 290 | 290 | } |
| 291 | 291 | $association = new TAssociationType(); |
| 292 | 292 | $relationship = $principalNavigationProperty->getRelationship(); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | if (0 == strlen(trim($namespace))) { |
| 355 | 355 | $associationSetName = $association->getName(); |
| 356 | 356 | } else { |
| 357 | - $associationSetName = $namespace . "." . $association->getName(); |
|
| 357 | + $associationSetName = $namespace.".".$association->getName(); |
|
| 358 | 358 | } |
| 359 | 359 | $as->setAssociation($associationSetName); |
| 360 | 360 | $end1 = new EndAnonymousType(); |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | private function initSerialiser() |
| 377 | 377 | { |
| 378 | - $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata"; |
|
| 378 | + $ymlDir = __DIR__.DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata"; |
|
| 379 | 379 | $this->serializer = |
| 380 | 380 | SerializerBuilder::create() |
| 381 | 381 | ->addMetadataDir($ymlDir) |