@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | if (!$this->V3Edmx->isOK($msg)) { |
| 31 | 31 | throw new \Exception($msg); |
| 32 | 32 | } |
| 33 | - $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata"; |
|
| 33 | + $ymlDir = __DIR__.DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata"; |
|
| 34 | 34 | $this->serializer = |
| 35 | 35 | SerializerBuilder::create() |
| 36 | 36 | ->addMetadataDir($ymlDir) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | if (0 == strlen(trim($namespace))) { |
| 66 | 66 | $entityTypeName = $NewEntity->getName(); |
| 67 | 67 | } else { |
| 68 | - $entityTypeName = $namespace . "." . $NewEntity->getName(); |
|
| 68 | + $entityTypeName = $namespace.".".$NewEntity->getName(); |
|
| 69 | 69 | } |
| 70 | 70 | $entitySet->setEntityType($entityTypeName); |
| 71 | 71 | $entitySet->setGetterAccess($accessType); |
@@ -106,11 +106,11 @@ discard block |
||
| 106 | 106 | $last_letter = strtolower($singular[strlen($singular) - 1]); |
| 107 | 107 | switch ($last_letter) { |
| 108 | 108 | case 'y': |
| 109 | - return substr($singular, 0, -1) . 'ies'; |
|
| 109 | + return substr($singular, 0, -1).'ies'; |
|
| 110 | 110 | case 's': |
| 111 | - return $singular . 'es'; |
|
| 111 | + return $singular.'es'; |
|
| 112 | 112 | default: |
| 113 | - return $singular . 's'; |
|
| 113 | + return $singular.'s'; |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
@@ -188,14 +188,14 @@ discard block |
||
| 188 | 188 | $dependentNavigationProperty = new TNavigationPropertyType(); |
| 189 | 189 | $principalEntitySetName = $this->pluralize(2, $principalType->getName()); |
| 190 | 190 | $dependentEntitySetName = $this->pluralize(2, $dependentType->getName()); |
| 191 | - $relationName = $principalType->getName() . "_" . $principalProperty . "_" . $dependentType->getName() . "_" . $dependentProperty; |
|
| 191 | + $relationName = $principalType->getName()."_".$principalProperty."_".$dependentType->getName()."_".$dependentProperty; |
|
| 192 | 192 | $relationName = trim($relationName, "_"); |
| 193 | 193 | |
| 194 | 194 | $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace(); |
| 195 | 195 | if (0 == strlen(trim($namespace))) { |
| 196 | 196 | $relationFQName = $relationName; |
| 197 | 197 | } else { |
| 198 | - $relationFQName = $namespace . "." . $relationName; |
|
| 198 | + $relationFQName = $namespace.".".$relationName; |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | $principalNavigationProperty = new TNavigationPropertyType(); |
@@ -260,8 +260,8 @@ discard block |
||
| 260 | 260 | $principalTypeFQName = $principalType->getName(); |
| 261 | 261 | $dependentTypeFQName = $dependentType->getName(); |
| 262 | 262 | } else { |
| 263 | - $principalTypeFQName = $namespace . "." . $principalType->getName(); |
|
| 264 | - $dependentTypeFQName = $namespace . "." . $dependentType->getName(); |
|
| 263 | + $principalTypeFQName = $namespace.".".$principalType->getName(); |
|
| 264 | + $dependentTypeFQName = $namespace.".".$dependentType->getName(); |
|
| 265 | 265 | } |
| 266 | 266 | $association = new TAssociationType(); |
| 267 | 267 | $association->setName($principalNavigationProperty->getRelationship()); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | if (0 == strlen(trim($namespace))) { |
| 317 | 317 | $associationSetName = $association->getName(); |
| 318 | 318 | } else { |
| 319 | - $associationSetName = $namespace . "." . $association->getName(); |
|
| 319 | + $associationSetName = $namespace.".".$association->getName(); |
|
| 320 | 320 | } |
| 321 | 321 | $as->setAssociation($associationSetName); |
| 322 | 322 | $end1 = new EndAnonymousType(); |