Completed
Pull Request — master (#122)
by Christopher
13:42 queued 08:32
created
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.
src/MetadataV3/edm/IsOKTraits/TParameterModeTrait.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 isTParameterModeValid($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 'In' == $string || 'Out' == $string || 'InOut' == $string;
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TConcurrencyModeTrait.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 isTConcurrencyModeValid($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 'Fixed' == $string || 'None' == $string;
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TWrappedFunctionTypeTrait.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|Ref)\([^ \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/TPropertyTypeTrait.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 = "/[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}(\.[\p{L}\p{Nl}][\p{L}\p{Nl}\p{Nd}\p{Mn}\p{Mc}\p{Pc}\p{Cf}]{0,}){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 (isset(static::$v3PropertyTypeCache[$string])) {
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
@@ -311,7 +311,7 @@
 block discarded – undo
311 311
         }
312 312
         foreach ($this->returnType as $type) {
313 313
             if (!is_string($type) || !$this->isTCommandTextValid($type)) {
314
-                $msg = implode($type) . ' must be a valid TCommandText';
314
+                $msg = implode($type).' must be a valid TCommandText';
315 315
                 return false;
316 316
             }
317 317
         }
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function setName($name)
88 88
     {
89 89
         if (!$this->isTSimpleIdentifierValid($name)) {
90
-            $msg = 'Name(' . $name . ') must be a valid TSimpleIdentifier';
90
+            $msg = 'Name('.$name.') must be a valid TSimpleIdentifier';
91 91
             throw new \InvalidArgumentException($msg);
92 92
         }
93 93
         $this->name = $name;
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     public function isOK(&$msg = null)
428 428
     {
429 429
         if (!$this->isTSimpleIdentifierValid($this->name)) {
430
-            $msg = 'Name(' . $this->name . ') must be a valid TSimpleIdentifier ' . __FILE__ . ':' . __LINE__;
430
+            $msg = 'Name('.$this->name.') must be a valid TSimpleIdentifier '.__FILE__.':'.__LINE__;
431 431
             return false;
432 432
         }
433 433
 
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         }
484 484
         foreach ($this->associationSet as $assocationSet) {
485 485
             if (!in_array($assocationSet->getEnd()[0]->getEntitySet(), $entityNames)) {
486
-                $msg = 'The entitysets for assocations must have a valid entity set. ' . $assocationSet->getName() . ' Does not';
486
+                $msg = 'The entitysets for assocations must have a valid entity set. '.$assocationSet->getName().' Does not';
487 487
                 return false;
488 488
             }
489 489
         }
Please login to merge, or discard this patch.
src/MetadataV3/edm/TEntityPropertyType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     public function setStoreGeneratedPattern($storeGeneratedPattern)
68 68
     {
69 69
         if (null != $storeGeneratedPattern && !$this->isTGenerationPatternValid($storeGeneratedPattern)) {
70
-            $msg = 'Store generation pattern must be a valid TGenerationPattern: ' . get_class($this);
70
+            $msg = 'Store generation pattern must be a valid TGenerationPattern: '.get_class($this);
71 71
             throw new \InvalidArgumentException($msg);
72 72
         }
73 73
         $this->storeGeneratedPattern = $storeGeneratedPattern;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
     public function isOK(&$msg = null)
284 284
     {
285 285
         if (null != $this->storeGeneratedPattern && !$this->isTGenerationPatternValid($this->storeGeneratedPattern)) {
286
-            $msg = 'Store generation pattern must be a valid TGenerationPattern: ' . get_class($this);
286
+            $msg = 'Store generation pattern must be a valid TGenerationPattern: '.get_class($this);
287 287
             return false;
288 288
         }
289 289
         if (!$this->isValidArrayOK(
Please login to merge, or discard this patch.
src/MetadataV3/edm/TSchemaType.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             $numDefaults += $isDefault ? 1 : 0;
148 148
         }
149 149
         if (1 != $numDefaults) {
150
-            $msg = 'Exactly one entityContainer must be set as default container, actually have ' . $numDefaults;
150
+            $msg = 'Exactly one entityContainer must be set as default container, actually have '.$numDefaults;
151 151
             return false;
152 152
         }
153 153
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                 die($this->getNamespace());
160 160
                 return false;
161 161
             }*/
162
-            $eSetType = str_replace($this->getNamespace() . '.', '', $eSetType);
162
+            $eSetType = str_replace($this->getNamespace().'.', '', $eSetType);
163 163
             if (!in_array($eSetType, $entityTypeNames)) {
164 164
                 $msg = 'entitySet Types should have a matching type name in entity Types';
165 165
                 return false;
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 
169 169
         // Check Associations to associationSets
170 170
         if (count($associationSets) != count($associationNames)) {
171
-            $msg = 'we have ' . count($associationSets) . 'association sets and ' . count($associationNames)
171
+            $msg = 'we have '.count($associationSets).'association sets and '.count($associationNames)
172 172
                     . ' associations, they should be the same';
173 173
         }
174 174
         if (count($associationNames) * 2 < count($navigationProperties)) {
@@ -177,33 +177,33 @@  discard block
 block discarded – undo
177 177
         }
178 178
         foreach ($associationNames as $associationName => $associationEnds) {
179 179
             if (!array_key_exists($associationName, $associationSets)) {
180
-                $msg = 'association ' . $associationName . ' exists without matching associationSet';
180
+                $msg = 'association '.$associationName.' exists without matching associationSet';
181 181
                 return false;
182 182
             }
183 183
 
184 184
             if (!array_key_exists($associationName, $navigationProperties)) {
185
-                $msg = 'association ' . $associationName . ' exists without matching Natvigation Property';
185
+                $msg = 'association '.$associationName.' exists without matching Natvigation Property';
186 186
                 return false;
187 187
             }
188 188
             $roles = [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()];
189 189
             if (!in_array($associationSets[$associationName][0]->getRole(), $roles)) {
190
-                $msg = 'association Set role ' . $associationSets[$associationName][0]->getRole()
190
+                $msg = 'association Set role '.$associationSets[$associationName][0]->getRole()
191 191
                         . 'lacks a matching property in the attached association';
192 192
                 return false;
193 193
             }
194 194
             if (!in_array($associationSets[$associationName][1]->getRole(), $roles)) {
195
-                $msg = 'association Set role ' . $associationSets[$associationName][1]->getRole()
195
+                $msg = 'association Set role '.$associationSets[$associationName][1]->getRole()
196 196
                         . 'lacks a matching property in the attached association';
197 197
                 return false;
198 198
             }
199 199
             foreach ($navigationProperties[$associationName] as $navProp) {
200 200
                 if (!in_array($navProp->getToRole(), $roles)) {
201
-                    $msg = 'Navigation Property Role ' . $navProp->getToRole()
201
+                    $msg = 'Navigation Property Role '.$navProp->getToRole()
202 202
                             . ' lacks a matching Property in the assocation';
203 203
                     return false;
204 204
                 }
205 205
                 if (!in_array($navProp->getFromRole(), $roles)) {
206
-                    $msg = 'Navigation Property Role ' .$navProp->getToRole()
206
+                    $msg = 'Navigation Property Role '.$navProp->getToRole()
207 207
                             . ' lacks a matching Property in the assocation';
208 208
                     return false;
209 209
                 }
Please login to merge, or discard this patch.