Completed
Pull Request — master (#122)
by Christopher
13:42 queued 08:32
created
src/IsOKTraits/IsOKToolboxTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             return true;
76 76
         }
77 77
         if (!$object instanceof $instanceOf) {
78
-            $msg = 'Supplied object not an instance of ' . $instanceOf . ': ' . get_class($this);
78
+            $msg = 'Supplied object not an instance of '.$instanceOf.': '.get_class($this);
79 79
             return false;
80 80
         }
81 81
         return $object->isOK($msg);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $result = $this->isValidArray($arr, $instanceOf, $minCount, $maxCount);
87 87
         if (!$result) {
88
-            $msg = 'Supplied array not a valid array: ' . get_class($this);
88
+            $msg = 'Supplied array not a valid array: '.get_class($this);
89 89
             return false;
90 90
         }
91 91
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         }
118 118
         foreach ($arr as $item) {
119 119
             if (!($item instanceof IsOK)) {
120
-                $msg = 'Child item is not an instance of IsOK: ' . get_class($this);
120
+                $msg = 'Child item is not an instance of IsOK: '.get_class($this);
121 121
                 return false;
122 122
             }
123 123
             if (!$item->isOK($msg)) {
Please login to merge, or discard this patch.
src/Annotations/TGenerationPatternTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function isTGenerationPatternValid($string)
12 12
     {
13 13
         if (!is_string($string)) {
14
-            $msg = 'Input must be a string: ' . get_class($this);
14
+            $msg = 'Input must be a string: '.get_class($this);
15 15
             throw new \InvalidArgumentException($msg);
16 16
         }
17 17
         return 'None' == $string || 'Identity' == $string || 'Computed' == $string;
Please login to merge, or discard this patch.
src/MetadataManager.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $entitySet = new EntitySetAnonymousType();
62 62
         $entitySet->setName(Str::plural($NewEntity->getName()));
63 63
         $namespace = $this->getNamespace();
64
-        $entityTypeName = $namespace . $NewEntity->getName();
64
+        $entityTypeName = $namespace.$NewEntity->getName();
65 65
         $entitySet->setEntityType($entityTypeName);
66 66
         $entitySet->setGetterAccess($accessType);
67 67
 
@@ -165,17 +165,17 @@  discard block
 block discarded – undo
165 165
     ) {
166 166
         $principalEntitySetName = Str::plural($principalType->getName());
167 167
         $dependentEntitySetName = Str::plural($dependentType->getName());
168
-        $relationName = $principalType->getName() . '_' . $principalProperty . '_'
169
-                        . $dependentType->getName() . '_' . $dependentProperty;
168
+        $relationName = $principalType->getName().'_'.$principalProperty.'_'
169
+                        . $dependentType->getName().'_'.$dependentProperty;
170 170
         $relationName = trim($relationName, '_');
171 171
 
172 172
         $namespace = $this->getNamespace();
173
-        $relationFQName = $namespace . $relationName;
173
+        $relationFQName = $namespace.$relationName;
174 174
 
175 175
         $principalNavigationProperty = new TNavigationPropertyType();
176 176
         $principalNavigationProperty->setName($principalProperty);
177
-        $principalNavigationProperty->setToRole(trim($dependentEntitySetName . '_' . $dependentProperty, '_'));
178
-        $principalNavigationProperty->setFromRole($principalEntitySetName . '_' . $principalProperty);
177
+        $principalNavigationProperty->setToRole(trim($dependentEntitySetName.'_'.$dependentProperty, '_'));
178
+        $principalNavigationProperty->setFromRole($principalEntitySetName.'_'.$principalProperty);
179 179
         $principalNavigationProperty->setRelationship($relationFQName);
180 180
         $principalNavigationProperty->setGetterAccess($principalGetterAccess);
181 181
         $principalNavigationProperty->setSetterAccess($principalSetterAccess);
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
         if (!empty($dependentProperty)) {
186 186
             $dependentNavigationProperty = new TNavigationPropertyType();
187 187
             $dependentNavigationProperty->setName($dependentProperty);
188
-            $dependentNavigationProperty->setToRole($principalEntitySetName . '_' . $principalProperty);
189
-            $dependentNavigationProperty->setFromRole($dependentEntitySetName . '_' . $dependentProperty);
188
+            $dependentNavigationProperty->setToRole($principalEntitySetName.'_'.$principalProperty);
189
+            $dependentNavigationProperty->setFromRole($dependentEntitySetName.'_'.$dependentProperty);
190 190
             $dependentNavigationProperty->setRelationship($relationFQName);
191 191
             $dependentNavigationProperty->setGetterAccess($dependentGetterAccess);
192 192
             $dependentNavigationProperty->setSetterAccess($dependentSetterAccess);
@@ -251,13 +251,13 @@  discard block
 block discarded – undo
251 251
         }
252 252
         if (!in_array($dependentMultiplicity, $multCombo[$principalMultiplicity])) {
253 253
             throw new \InvalidArgumentException(
254
-                'Invalid multiplicity combination - ' . $principalMultiplicity . ' ' . $dependentMultiplicity
254
+                'Invalid multiplicity combination - '.$principalMultiplicity.' '.$dependentMultiplicity
255 255
             );
256 256
         }
257 257
 
258 258
         $namespace = $this->getNamespace();
259
-        $principalTypeFQName = $namespace . $principalType->getName();
260
-        $dependentTypeFQName = $namespace . $dependentType->getName();
259
+        $principalTypeFQName = $namespace.$principalType->getName();
260
+        $dependentTypeFQName = $namespace.$dependentType->getName();
261 261
         $association = new TAssociationType();
262 262
         $relationship = $principalNavigationProperty->getRelationship();
263 263
         if (false !== strpos($relationship, '.')) {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         $name = $association->getName();
313 313
         $as->setName($name);
314 314
         $namespace = $this->getNamespace();
315
-        $associationSetName = $namespace . $association->getName();
315
+        $associationSetName = $namespace.$association->getName();
316 316
         $as->setAssociation($associationSetName);
317 317
         $end1 = new EndAnonymousType();
318 318
         $end1->setRole($association->getEnd()[0]->getRole());
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 
373 373
     private function initSerialiser()
374 374
     {
375
-        $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . 'MetadataV3' . DIRECTORY_SEPARATOR . 'JMSmetadata';
375
+        $ymlDir = __DIR__.DIRECTORY_SEPARATOR.'MetadataV3'.DIRECTORY_SEPARATOR.'JMSmetadata';
376 376
         $this->serializer =
377 377
             SerializerBuilder::create()
378 378
             ->addMetadataDir($ymlDir)
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TActionTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public function isTActionValid($string)
8 8
     {
9 9
         if (!is_string($string)) {
10
-            $msg = 'Input must be a string: ' . get_class($this);
10
+            $msg = 'Input must be a string: '.get_class($this);
11 11
             throw new \InvalidArgumentException($msg);
12 12
         }
13 13
         return 'Cascade' == $string || 'None' == $string;
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TUnwrappedFunctionTypeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $regex = '/[^ \t]{1,}(\.[^ \t]{1,}){0,}/';
18 18
 
19 19
         if (!is_string($string)) {
20
-            $msg = 'Input must be a string: ' . get_class($this);
20
+            $msg = 'Input must be a string: '.get_class($this);
21 21
             throw new \InvalidArgumentException($msg);
22 22
         }
23 23
         if ($this->isTQualifiedNameValid($string)) {
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TCommandTextTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function isTCommandTextValid($string)
12 12
     {
13 13
         if (!is_string($string)) {
14
-            $msg = 'Input must be a string: ' . get_class($this);
14
+            $msg = 'Input must be a string: '.get_class($this);
15 15
             throw new \InvalidArgumentException($msg);
16 16
         }
17 17
         return true;
Please login to merge, or discard this patch.
MetadataV3/edm/IsOKTraits/TFunctionImportParameterAndReturnTypeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $regex = "/Collection\([^ \t]{1,}(\.[^ \t]{1,}){0,}\)/";
18 18
 
19 19
         if (!is_string($string)) {
20
-            $msg = 'Input must be a string: ' . get_class($this);
20
+            $msg = 'Input must be a string: '.get_class($this);
21 21
             throw new \InvalidArgumentException($msg);
22 22
         }
23 23
         if ($this->isEDMSimpleTypeValid($string)) {
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TMultiplicityTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     public function isTMultiplicityValid($string)
8 8
     {
9 9
         if (!is_string($string)) {
10
-            $msg = 'Input must be a string: ' . get_class($this);
10
+            $msg = 'Input must be a string: '.get_class($this);
11 11
             throw new \InvalidArgumentException($msg);
12 12
         }
13 13
         return '0..1' == $string || '1' == $string || '*' == $string;
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/EDMSimpleTypeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function isEDMSimpleTypeValid($string)
15 15
     {
16 16
         if (!is_string($string)) {
17
-            $msg = 'Input must be a string: ' . get_class($this);
17
+            $msg = 'Input must be a string: '.get_class($this);
18 18
             throw new \InvalidArgumentException($msg);
19 19
         }
20 20
         if (!in_array($string, static::$v3EDMSimpleType)) {
Please login to merge, or discard this patch.