@@ -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) |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | if (0 == strlen(trim($namespace))) { |
68 | 68 | $entityTypeName = $NewEntity->getName(); |
69 | 69 | } else { |
70 | - $entityTypeName = $namespace . "." . $NewEntity->getName(); |
|
70 | + $entityTypeName = $namespace.".".$NewEntity->getName(); |
|
71 | 71 | } |
72 | 72 | $entitySet->setEntityType($entityTypeName); |
73 | 73 | $entitySet->setGetterAccess($accessType); |
@@ -108,11 +108,11 @@ discard block |
||
108 | 108 | $last_letter = strtolower($singular[strlen($singular) - 1]); |
109 | 109 | switch ($last_letter) { |
110 | 110 | case 'y': |
111 | - return substr($singular, 0, -1) . 'ies'; |
|
111 | + return substr($singular, 0, -1).'ies'; |
|
112 | 112 | case 's': |
113 | - return $singular . 'es'; |
|
113 | + return $singular.'es'; |
|
114 | 114 | default: |
115 | - return $singular . 's'; |
|
115 | + return $singular.'s'; |
|
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
@@ -187,21 +187,21 @@ 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 . "_" |
|
191 | - . $dependentType->getName() . "_" . $dependentProperty; |
|
190 | + $relationName = $principalType->getName()."_".$principalProperty."_" |
|
191 | + . $dependentType->getName()."_".$dependentProperty; |
|
192 | 192 | $relationName = trim($relationName, "_"); |
193 | 193 | |
194 | 194 | $namespace = $this->V3Edmx->getDataServiceType()->getSchema()[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(); |
202 | 202 | $principalNavigationProperty->setName($principalProperty); |
203 | - $principalNavigationProperty->setToRole(trim($dependentEntitySetName . "_" . $dependentProperty, "_")); |
|
204 | - $principalNavigationProperty->setFromRole($principalEntitySetName . "_" . $principalProperty); |
|
203 | + $principalNavigationProperty->setToRole(trim($dependentEntitySetName."_".$dependentProperty, "_")); |
|
204 | + $principalNavigationProperty->setFromRole($principalEntitySetName."_".$principalProperty); |
|
205 | 205 | $principalNavigationProperty->setRelationship($relationFQName); |
206 | 206 | $principalNavigationProperty->setGetterAccess($principalGetterAccess); |
207 | 207 | $principalNavigationProperty->setSetterAccess($principalSetterAccess); |
@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | if (!empty($dependentProperty)) { |
217 | 217 | $dependentNavigationProperty = new TNavigationPropertyType(); |
218 | 218 | $dependentNavigationProperty->setName($dependentProperty); |
219 | - $dependentNavigationProperty->setToRole($principalEntitySetName . "_" . $principalProperty); |
|
220 | - $dependentNavigationProperty->setFromRole($dependentEntitySetName . "_" . $dependentProperty); |
|
219 | + $dependentNavigationProperty->setToRole($principalEntitySetName."_".$principalProperty); |
|
220 | + $dependentNavigationProperty->setFromRole($dependentEntitySetName."_".$dependentProperty); |
|
221 | 221 | $dependentNavigationProperty->setRelationship($relationFQName); |
222 | 222 | $dependentNavigationProperty->setGetterAccess($dependentGetterAccess); |
223 | 223 | $dependentNavigationProperty->setSetterAccess($dependentSetterAccess); |
@@ -288,8 +288,8 @@ discard block |
||
288 | 288 | $principalTypeFQName = $principalType->getName(); |
289 | 289 | $dependentTypeFQName = $dependentType->getName(); |
290 | 290 | } else { |
291 | - $principalTypeFQName = $namespace . "." . $principalType->getName(); |
|
292 | - $dependentTypeFQName = $namespace . "." . $dependentType->getName(); |
|
291 | + $principalTypeFQName = $namespace.".".$principalType->getName(); |
|
292 | + $dependentTypeFQName = $namespace.".".$dependentType->getName(); |
|
293 | 293 | } |
294 | 294 | $association = new TAssociationType(); |
295 | 295 | $relationship = $principalNavigationProperty->getRelationship(); |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | if (0 == strlen(trim($namespace))) { |
358 | 358 | $associationSetName = $association->getName(); |
359 | 359 | } else { |
360 | - $associationSetName = $namespace . "." . $association->getName(); |
|
360 | + $associationSetName = $namespace.".".$association->getName(); |
|
361 | 361 | } |
362 | 362 | $as->setAssociation($associationSetName); |
363 | 363 | $end1 = new EndAnonymousType(); |