@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | if (!$this->V3Edmx->isOK($msg)) { |
| 30 | 30 | throw new \Exception($msg); |
| 31 | 31 | } |
| 32 | - $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata"; |
|
| 32 | + $ymlDir = __DIR__.DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata"; |
|
| 33 | 33 | $this->serializer = |
| 34 | 34 | SerializerBuilder::create() |
| 35 | 35 | ->addMetadataDir($ymlDir) |
@@ -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 | |
@@ -180,13 +180,13 @@ discard block |
||
| 180 | 180 | $dependentProperty |
| 181 | 181 | ) { |
| 182 | 182 | $as = new AssociationSetAnonymousType(); |
| 183 | - $name = $principalType . "_" . $principalProperty . "_" . $dependentType . "_" . $dependentProperty; |
|
| 183 | + $name = $principalType."_".$principalProperty."_".$dependentType."_".$dependentProperty; |
|
| 184 | 184 | $as->setName($name); |
| 185 | 185 | $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace(); |
| 186 | 186 | if (0 == strlen(trim($namespace))) { |
| 187 | 187 | $associationSetName = $association->getName(); |
| 188 | 188 | } else { |
| 189 | - $associationSetName = $namespace . "." . $association->getName(); |
|
| 189 | + $associationSetName = $namespace.".".$association->getName(); |
|
| 190 | 190 | } |
| 191 | 191 | $as->setAssociation($associationSetName); |
| 192 | 192 | $end1 = new EndAnonymousType(); |
@@ -211,17 +211,17 @@ discard block |
||
| 211 | 211 | array $dependentConstraintProperty = null |
| 212 | 212 | ) { |
| 213 | 213 | $association = new TAssociationType(); |
| 214 | - $name = $principalType . "_" . $principalProperty . "_" . $dependentType . "_" . $dependentProperty; |
|
| 214 | + $name = $principalType."_".$principalProperty."_".$dependentType."_".$dependentProperty; |
|
| 215 | 215 | $name = trim($name, "_"); |
| 216 | 216 | $association->setName($name); |
| 217 | 217 | |
| 218 | 218 | $principalEnd = new TAssociationEndType(); |
| 219 | 219 | $principalEnd->setType($principalType); |
| 220 | - $principalEnd->setRole($principalType . "_" . $principalProperty . "_" . $dependentType); |
|
| 220 | + $principalEnd->setRole($principalType."_".$principalProperty."_".$dependentType); |
|
| 221 | 221 | $principalEnd->setMultiplicity($principalMultiplicity); |
| 222 | 222 | $dependentEnd = new TAssociationEndType(); |
| 223 | 223 | $dependentEnd->setType($dependentType); |
| 224 | - $dependentEnd->setRole($dependentType . "_" . $dependentProperty . "_" . $principalType); |
|
| 224 | + $dependentEnd->setRole($dependentType."_".$dependentProperty."_".$principalType); |
|
| 225 | 225 | $dependentEnd->setMultiplicity($dependentMultiplicity); |
| 226 | 226 | $association->addToEnd($principalEnd); |
| 227 | 227 | $association->addToEnd($dependentEnd); |
@@ -229,14 +229,14 @@ discard block |
||
| 229 | 229 | $dependentReferralConstraint = null; |
| 230 | 230 | if (null != $principalConstraintProperty && 0 < count($principalConstraintProperty)) { |
| 231 | 231 | $principalReferralConstraint = new TReferentialConstraintRoleElementType(); |
| 232 | - $principalReferralConstraint->setRole($principalType . "_" . $principalProperty . "_" . $dependentType); |
|
| 232 | + $principalReferralConstraint->setRole($principalType."_".$principalProperty."_".$dependentType); |
|
| 233 | 233 | foreach ($principalConstraintProperty as $pripertyRef) { |
| 234 | 234 | $principalReferralConstraint->addToPropertyRef($pripertyRef); |
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | if (null != $dependentConstraintProperty && 0 < count($dependentConstraintProperty)) { |
| 238 | 238 | $dependentReferralConstraint = new TReferentialConstraintRoleElementType(); |
| 239 | - $dependentReferralConstraint->setRole($dependentType . "_" . $dependentProperty . "_" . $principalType); |
|
| 239 | + $dependentReferralConstraint->setRole($dependentType."_".$dependentProperty."_".$principalType); |
|
| 240 | 240 | foreach ($dependentConstraintProperty as $pripertyRef) { |
| 241 | 241 | $dependentReferralConstraint->addToPropertyRef($pripertyRef); |
| 242 | 242 | } |