Completed
Push — master ( 6e68ed...44f89b )
by Alex
09:25
created
src/MetadataManager.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -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);
@@ -181,21 +181,21 @@  discard block
 block discarded – undo
181 181
     ) {
182 182
         $principalEntitySetName = Str::plural($principalType->getName(), 2);
183 183
         $dependentEntitySetName = Str::plural($dependentType->getName(), 2);
184
-        $relationName = $principalType->getName() . "_" . $principalProperty . "_"
185
-                        . $dependentType->getName() . "_" . $dependentProperty;
184
+        $relationName = $principalType->getName()."_".$principalProperty."_"
185
+                        . $dependentType->getName()."_".$dependentProperty;
186 186
         $relationName = trim($relationName, "_");
187 187
 
188 188
         $namespace = $this->V3Edmx->getDataServiceType()->getSchema()[0]->getNamespace();
189 189
         if (0 == strlen(trim($namespace))) {
190 190
             $relationFQName = $relationName;
191 191
         } else {
192
-            $relationFQName = $namespace . "." . $relationName;
192
+            $relationFQName = $namespace.".".$relationName;
193 193
         }
194 194
 
195 195
         $principalNavigationProperty = new TNavigationPropertyType();
196 196
         $principalNavigationProperty->setName($principalProperty);
197
-        $principalNavigationProperty->setToRole(trim($dependentEntitySetName . "_" . $dependentProperty, "_"));
198
-        $principalNavigationProperty->setFromRole($principalEntitySetName . "_" . $principalProperty);
197
+        $principalNavigationProperty->setToRole(trim($dependentEntitySetName."_".$dependentProperty, "_"));
198
+        $principalNavigationProperty->setFromRole($principalEntitySetName."_".$principalProperty);
199 199
         $principalNavigationProperty->setRelationship($relationFQName);
200 200
         $principalNavigationProperty->setGetterAccess($principalGetterAccess);
201 201
         $principalNavigationProperty->setSetterAccess($principalSetterAccess);
@@ -210,8 +210,8 @@  discard block
 block discarded – undo
210 210
         if (!empty($dependentProperty)) {
211 211
             $dependentNavigationProperty = new TNavigationPropertyType();
212 212
             $dependentNavigationProperty->setName($dependentProperty);
213
-            $dependentNavigationProperty->setToRole($principalEntitySetName . "_" . $principalProperty);
214
-            $dependentNavigationProperty->setFromRole($dependentEntitySetName . "_" . $dependentProperty);
213
+            $dependentNavigationProperty->setToRole($principalEntitySetName."_".$principalProperty);
214
+            $dependentNavigationProperty->setFromRole($dependentEntitySetName."_".$dependentProperty);
215 215
             $dependentNavigationProperty->setRelationship($relationFQName);
216 216
             $dependentNavigationProperty->setGetterAccess($dependentGetterAccess);
217 217
             $dependentNavigationProperty->setSetterAccess($dependentSetterAccess);
@@ -280,8 +280,8 @@  discard block
 block discarded – undo
280 280
             $principalTypeFQName = $principalType->getName();
281 281
             $dependentTypeFQName = $dependentType->getName();
282 282
         } else {
283
-            $principalTypeFQName = $namespace . "." . $principalType->getName();
284
-            $dependentTypeFQName = $namespace . "." . $dependentType->getName();
283
+            $principalTypeFQName = $namespace.".".$principalType->getName();
284
+            $dependentTypeFQName = $namespace.".".$dependentType->getName();
285 285
         }
286 286
         $association = new TAssociationType();
287 287
         $relationship = $principalNavigationProperty->getRelationship();
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         if (0 == strlen(trim($namespace))) {
350 350
             $associationSetName = $association->getName();
351 351
         } else {
352
-            $associationSetName = $namespace . "." . $association->getName();
352
+            $associationSetName = $namespace.".".$association->getName();
353 353
         }
354 354
         $as->setAssociation($associationSetName);
355 355
         $end1 = new EndAnonymousType();
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
 
371 371
     private function initSerialiser()
372 372
     {
373
-        $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata";
373
+        $ymlDir = __DIR__.DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata";
374 374
         $this->serializer =
375 375
             SerializerBuilder::create()
376 376
                 ->addMetadataDir($ymlDir)
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/TFunctionImportAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
     public function isTFunctionImportAttributesValid(&$msg)
266 266
     {
267 267
         if (!$this->isTSimpleIdentifierValid($this->name)) {
268
-            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
268
+            $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this);
269 269
             return false;
270 270
         }
271 271
         if ($this->isComposable && $this->isSideEffecting) {
@@ -278,11 +278,11 @@  discard block
 block discarded – undo
278 278
             return false;
279 279
         }*/
280 280
         if (!$this->isObjectNullOrType('\AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType', $this->entitySet)) {
281
-            $msg = "Entity set must be either null or an instance of TOperandType: " . get_class($this);
281
+            $msg = "Entity set must be either null or an instance of TOperandType: ".get_class($this);
282 282
             return false;
283 283
         }
284 284
         if (null != $this->methodAccess && $this->isTAccessOk($this->methodAccess)) {
285
-            $msg = "Method access must be a valid TAccess: " . get_class($this);
285
+            $msg = "Method access must be a valid TAccess: ".get_class($this);
286 286
             return false;
287 287
         }
288 288
         if (!$this->isValidArrayOK(
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer/FunctionImportAnonymousType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         }
139 139
 
140 140
         $numParms = count($this->parameter);
141
-        for ($i = 0; $i < $numParms -2; $i++) {
141
+        for ($i = 0; $i < $numParms - 2; $i++) {
142 142
             $outName = $this->parameter[$i]->getName();
143 143
             for ($j = $i + 1; $j < $numParms - 1; $j++) {
144 144
                 $inName = $this->parameter[$j]->getName();
Please login to merge, or discard this patch.
src/MetadataV3/edm/TFunctionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@
 block discarded – undo
308 308
         }
309 309
         foreach ($this->returnType as $type) {
310 310
             if (!is_string($type) || !$this->isTCommandTextValid($type)) {
311
-                $msg = implode($type) . " must be a valid TCommandText";
311
+                $msg = implode($type)." must be a valid TCommandText";
312 312
                 return false;
313 313
             }
314 314
         }
Please login to merge, or discard this patch.