@@ -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 | |
@@ -187,14 +187,14 @@ discard block |
||
187 | 187 | $this->startEdmxTransaction(); |
188 | 188 | $principalEntitySetName = $this->pluralize(2, $principalType->getName()); |
189 | 189 | $dependentEntitySetName = $this->pluralize(2, $dependentType->getName()); |
190 | - $relationName = $principalType->getName() . "_" . $principalProperty . "_" . $dependentType->getName() . "_" . $dependentProperty; |
|
190 | + $relationName = $principalType->getName()."_".$principalProperty."_".$dependentType->getName()."_".$dependentProperty; |
|
191 | 191 | $relationName = trim($relationName, "_"); |
192 | 192 | |
193 | 193 | $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace(); |
194 | 194 | if (0 == strlen(trim($namespace))) { |
195 | 195 | $relationFQName = $relationName; |
196 | 196 | } else { |
197 | - $relationFQName = $namespace . "." . $relationName; |
|
197 | + $relationFQName = $namespace.".".$relationName; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | $principalNavigationProperty = new TNavigationPropertyType(); |
@@ -289,8 +289,8 @@ discard block |
||
289 | 289 | $principalTypeFQName = $principalType->getName(); |
290 | 290 | $dependentTypeFQName = $dependentType->getName(); |
291 | 291 | } else { |
292 | - $principalTypeFQName = $namespace . "." . $principalType->getName(); |
|
293 | - $dependentTypeFQName = $namespace . "." . $dependentType->getName(); |
|
292 | + $principalTypeFQName = $namespace.".".$principalType->getName(); |
|
293 | + $dependentTypeFQName = $namespace.".".$dependentType->getName(); |
|
294 | 294 | } |
295 | 295 | $association = new TAssociationType(); |
296 | 296 | $association->setName($principalNavigationProperty->getRelationship()); |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | if (0 == strlen(trim($namespace))) { |
344 | 344 | $associationSetName = $association->getName(); |
345 | 345 | } else { |
346 | - $associationSetName = $namespace . "." . $association->getName(); |
|
346 | + $associationSetName = $namespace.".".$association->getName(); |
|
347 | 347 | } |
348 | 348 | $as->setAssociation($associationSetName); |
349 | 349 | $end1 = new EndAnonymousType(); |