Completed
Push — master ( e54666...fb0960 )
by Christopher
10:55 queued 05:18
created
src/MetadataManager.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -183,13 +183,13 @@  discard block
 block discarded – undo
183 183
     )
184 184
     {
185 185
         $as = new AssociationSetAnonymousType();
186
-        $name = $principalType . "_" . $principalProperty . "_" . $dependentType . "_" . $dependentProperty;
186
+        $name = $principalType."_".$principalProperty."_".$dependentType."_".$dependentProperty;
187 187
         $as->setName($name);
188 188
         $namespace = $this->V3Edmx->getDataServices()[0]->getNamespace();
189 189
         if (0 == strlen(trim($namespace))) {
190 190
             $associationSetName = $association->getName();
191 191
         } else {
192
-            $associationSetName = $namespace . "." . $association->getName();
192
+            $associationSetName = $namespace.".".$association->getName();
193 193
         }
194 194
         $as->setAssociation($associationSetName);
195 195
         $end1 = new EndAnonymousType();
@@ -215,17 +215,17 @@  discard block
 block discarded – undo
215 215
     )
216 216
     {
217 217
         $association = new TAssociationType();
218
-        $name = $principalType . "_" . $principalProperty . "_" . $dependentType . "_" . $dependentProperty;
218
+        $name = $principalType."_".$principalProperty."_".$dependentType."_".$dependentProperty;
219 219
         $name = trim($name, "_");
220 220
         $association->setName($name);
221 221
 
222 222
         $principalEnd = new TAssociationEndType();
223 223
         $principalEnd->setType($principalType);
224
-        $principalEnd->setRole($principalType . "_" . $principalProperty . "_" . $dependentType);
224
+        $principalEnd->setRole($principalType."_".$principalProperty."_".$dependentType);
225 225
         $principalEnd->setMultiplicity($principalMultiplicity);
226 226
         $dependentEnd = new TAssociationEndType();
227 227
         $dependentEnd->setType($dependentType);
228
-        $dependentEnd->setRole($dependentType . "_" . $dependentProperty . "_" . $principalType);
228
+        $dependentEnd->setRole($dependentType."_".$dependentProperty."_".$principalType);
229 229
         $dependentEnd->setMultiplicity($dependentMultiplicity);
230 230
         $association->addToEnd($principalEnd);
231 231
         $association->addToEnd($dependentEnd);
@@ -233,14 +233,14 @@  discard block
 block discarded – undo
233 233
         $dependentReferralConstraint = null;
234 234
         if (null != $principalConstraintProperty && 0 < count($principalConstraintProperty)) {
235 235
             $principalReferralConstraint = new TReferentialConstraintRoleElementType();
236
-            $principalReferralConstraint->setRole($principalType . "_" . $principalProperty . "_" . $dependentType);
236
+            $principalReferralConstraint->setRole($principalType."_".$principalProperty."_".$dependentType);
237 237
             foreach ($principalConstraintProperty as $pripertyRef) {
238 238
                 $principalReferralConstraint->addToPropertyRef($pripertyRef);
239 239
             }
240 240
         }
241 241
         if (null != $dependentConstraintProperty && 0 < count($dependentConstraintProperty)) {
242 242
             $dependentReferralConstraint = new TReferentialConstraintRoleElementType();
243
-            $dependentReferralConstraint->setRole($dependentType . "_" . $dependentProperty . "_" . $principalType);
243
+            $dependentReferralConstraint->setRole($dependentType."_".$dependentProperty."_".$principalType);
244 244
             foreach ($dependentConstraintProperty as $pripertyRef) {
245 245
                 $dependentReferralConstraint->addToPropertyRef($pripertyRef);
246 246
             }
Please login to merge, or discard this patch.