Completed
Pull Request — master (#122)
by Christopher
13:42 queued 08:32
created
src/MetadataV3/edm/Groups/TFacetAttributesTrait.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -299,39 +299,39 @@
 block discarded – undo
299 299
     public function isTFacetAttributesTraitValid(&$msg = null)
300 300
     {
301 301
         if ($this->nullable !== boolval($this->nullable)) {
302
-            $msg = 'Nullable must be boolean: ' . get_class($this);
302
+            $msg = 'Nullable must be boolean: '.get_class($this);
303 303
             return false;
304 304
         }
305 305
         if (null != $this->defaultValue && !is_string($this->defaultValue)) {
306
-            $msg = 'Default value must be a string: ' . get_class($this);
306
+            $msg = 'Default value must be a string: '.get_class($this);
307 307
             return false;
308 308
         }
309 309
         if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
310
-            $msg = 'Collation must be a valid TCollationFacet: ' . get_class($this);
310
+            $msg = 'Collation must be a valid TCollationFacet: '.get_class($this);
311 311
             return false;
312 312
         }
313 313
         if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
314
-            $msg = 'Max length must be a valid TMaxLengthFacet: ' . get_class($this);
314
+            $msg = 'Max length must be a valid TMaxLengthFacet: '.get_class($this);
315 315
             return false;
316 316
         }
317 317
         if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
318
-            $msg = 'Fixed length must be a valid TFixedLengthFacet: ' . get_class($this);
318
+            $msg = 'Fixed length must be a valid TFixedLengthFacet: '.get_class($this);
319 319
             return false;
320 320
         }
321 321
         if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) {
322
-            $msg = 'Precision must be a valid TPrecisionFacet: ' . get_class($this);
322
+            $msg = 'Precision must be a valid TPrecisionFacet: '.get_class($this);
323 323
             return false;
324 324
         }
325 325
         if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) {
326
-            $msg = 'Scale must be a valid TScaleFacet: ' . get_class($this);
326
+            $msg = 'Scale must be a valid TScaleFacet: '.get_class($this);
327 327
             return false;
328 328
         }
329 329
         if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
330
-            $msg = 'SRID must be a valid TSridFacet: ' . get_class($this);
330
+            $msg = 'SRID must be a valid TSridFacet: '.get_class($this);
331 331
             return false;
332 332
         }
333 333
         if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
334
-            $msg = 'Unicode must be a valid TUnicodeFacet: ' . get_class($this);
334
+            $msg = 'Unicode must be a valid TUnicodeFacet: '.get_class($this);
335 335
             return false;
336 336
         }
337 337
 
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
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
     public function isTFunctionImportAttributesValid(&$msg)
267 267
     {
268 268
         if (!$this->isTSimpleIdentifierValid($this->name)) {
269
-            $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this);
269
+            $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this);
270 270
             return false;
271 271
         }
272 272
         if ($this->isComposable && $this->isSideEffecting) {
@@ -279,11 +279,11 @@  discard block
 block discarded – undo
279 279
             return false;
280 280
         }*/
281 281
         if (!$this->isObjectNullOrType('\AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType', $this->entitySet)) {
282
-            $msg = 'Entity set must be either null or an instance of TOperandType: ' . get_class($this);
282
+            $msg = 'Entity set must be either null or an instance of TOperandType: '.get_class($this);
283 283
             return false;
284 284
         }
285 285
         if (null != $this->methodAccess && !$this->isTAccessOk($this->methodAccess)) {
286
-            $msg = 'Method access must be a valid TAccess: ' . get_class($this);
286
+            $msg = 'Method access must be a valid TAccess: '.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/Groups/TDerivableTypeAttributesTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             return false;
77 77
         }
78 78
         if (null != $this->baseType && !$this->isTQualifiedNameValid($this->baseType)) {
79
-            $msg = 'Base type must be a valid TQualifiedName: ' . get_class($this);
79
+            $msg = 'Base type must be a valid TQualifiedName: '.get_class($this);
80 80
             return false;
81 81
         }
82 82
         return true;
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/TFunctionImportParameterAttributesTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -261,31 +261,31 @@
 block discarded – undo
261 261
     public function isTFunctionImportParameterAttributesValid(&$msg = null)
262 262
     {
263 263
         if (!$this->isTSimpleIdentifierValid($this->name)) {
264
-            $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this);
264
+            $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this);
265 265
             return false;
266 266
         }
267 267
         if (!$this->isTFunctionImportParameterAndReturnTypeValid($this->type)) {
268
-            $msg = 'Type must be a valid TFunctionImportParameterAndReturnType: ' . get_class($this);
268
+            $msg = 'Type must be a valid TFunctionImportParameterAndReturnType: '.get_class($this);
269 269
             return false;
270 270
         }
271 271
         if (null != $this->mode && !$this->isTParameterModeValid($this->mode)) {
272
-            $msg = 'Mode must be a valid TParameterMode: ' . get_class($this);
272
+            $msg = 'Mode must be a valid TParameterMode: '.get_class($this);
273 273
             return false;
274 274
         }
275 275
         if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
276
-            $msg = 'Max length must be a valid TMaxLengthFacet: ' . get_class($this);
276
+            $msg = 'Max length must be a valid TMaxLengthFacet: '.get_class($this);
277 277
             return false;
278 278
         }
279 279
         if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) {
280
-            $msg = 'Precision must be a valid TPrecisionFacet: ' . get_class($this);
280
+            $msg = 'Precision must be a valid TPrecisionFacet: '.get_class($this);
281 281
             return false;
282 282
         }
283 283
         if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) {
284
-            $msg = 'Scale must be a valid TScaleFacet: ' . get_class($this);
284
+            $msg = 'Scale must be a valid TScaleFacet: '.get_class($this);
285 285
             return false;
286 286
         }
287 287
         if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
288
-            $msg = 'SRID must be a valid TSRIDFacet: ' . get_class($this);
288
+            $msg = 'SRID must be a valid TSRIDFacet: '.get_class($this);
289 289
             return false;
290 290
         }
291 291
 
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/TCommonPropertyAttributesTrait.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -478,59 +478,59 @@
 block discarded – undo
478 478
     public function isTCommonPropertyAttributesValid(&$msg = null)
479 479
     {
480 480
         if (!$this->isTSimpleIdentifierValid($this->name)) {
481
-            $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this);
481
+            $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this);
482 482
             return false;
483 483
         }
484 484
         if (!$this->isTPropertyTypeValid($this->type)) {
485
-            $msg = 'Type must be a valid TPropertyType: ' . get_class($this);
485
+            $msg = 'Type must be a valid TPropertyType: '.get_class($this);
486 486
             return false;
487 487
         }
488 488
         if (null != $this->nullable && $this->nullable !== boolval($this->nullable)) {
489
-            $msg = 'Nullable must be boolean: ' . get_class($this);
489
+            $msg = 'Nullable must be boolean: '.get_class($this);
490 490
             return false;
491 491
         }
492 492
         if (null != $this->defaultValue && !is_string($this->defaultValue)) {
493
-            $msg = 'Default value must be a string: ' . get_class($this);
493
+            $msg = 'Default value must be a string: '.get_class($this);
494 494
             return false;
495 495
         }
496 496
         if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
497
-            $msg = 'Max length must be a valid TMaxLengthFacet: ' . get_class($this);
497
+            $msg = 'Max length must be a valid TMaxLengthFacet: '.get_class($this);
498 498
             return false;
499 499
         }
500 500
         if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
501
-            $msg = 'Max length must be a valid TFixedLengthFacet: ' . get_class($this);
501
+            $msg = 'Max length must be a valid TFixedLengthFacet: '.get_class($this);
502 502
             return false;
503 503
         }
504 504
         if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) {
505
-            $msg = 'Precision must be a valid TPrecisionFacet: ' . get_class($this);
505
+            $msg = 'Precision must be a valid TPrecisionFacet: '.get_class($this);
506 506
             return false;
507 507
         }
508 508
         if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) {
509
-            $msg = 'Scale must be a valid TScaleFacet: ' . get_class($this);
509
+            $msg = 'Scale must be a valid TScaleFacet: '.get_class($this);
510 510
             return false;
511 511
         }
512 512
         if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
513
-            $msg = 'Unicode must be a valid TUnicodeFacet: ' . get_class($this);
513
+            $msg = 'Unicode must be a valid TUnicodeFacet: '.get_class($this);
514 514
             return false;
515 515
         }
516 516
         if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
517
-            $msg = 'Collation must be a valid TCollationFacet: ' . get_class($this);
517
+            $msg = 'Collation must be a valid TCollationFacet: '.get_class($this);
518 518
             return false;
519 519
         }
520 520
         if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
521
-            $msg = 'SRID must be a valid TSridFacet: ' . get_class($this);
521
+            $msg = 'SRID must be a valid TSridFacet: '.get_class($this);
522 522
             return false;
523 523
         }
524 524
         if (null != $this->concurrencyMode && !$this->isTConcurrencyModeValid($this->concurrencyMode)) {
525
-            $msg = 'ConcurrencyMode must be a valid TConcurrencyMode: ' . get_class($this);
525
+            $msg = 'ConcurrencyMode must be a valid TConcurrencyMode: '.get_class($this);
526 526
             return false;
527 527
         }
528 528
         if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) {
529
-            $msg = 'Setter access must be a valid TAccess: ' . get_class($this);
529
+            $msg = 'Setter access must be a valid TAccess: '.get_class($this);
530 530
             return false;
531 531
         }
532 532
         if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) {
533
-            $msg = 'Getter access must be a valid TAccess: ' . get_class($this);
533
+            $msg = 'Getter access must be a valid TAccess: '.get_class($this);
534 534
             return false;
535 535
         }
536 536
 
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/GExpressionTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -687,29 +687,29 @@  discard block
 block discarded – undo
687 687
                 $counter += isset($this->$name) ? 1 : 0;
688 688
             }
689 689
             if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) {
690
-                $msg = $counter . ' fields not null.  Need minimum of '.$this->gExpressionMinimum. ': '
690
+                $msg = $counter.' fields not null.  Need minimum of '.$this->gExpressionMinimum.': '
691 691
                         . get_class($this);
692 692
                 return false;
693 693
             }
694 694
             if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) {
695
-                $msg = $counter . ' fields not null.  Need maximum of '.$this->gExpressionMaximum. ': '
695
+                $msg = $counter.' fields not null.  Need maximum of '.$this->gExpressionMaximum.': '
696 696
                         . get_class($this);
697 697
                 return false;
698 698
             }
699 699
         }
700 700
 
701 701
         if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) {
702
-            $msg = 'Guid must be a valid TGuidLiteral: ' . get_class($this);
702
+            $msg = 'Guid must be a valid TGuidLiteral: '.get_class($this);
703 703
             return false;
704 704
         }
705 705
 
706 706
         if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) {
707
-            $msg = 'Enum must be a valid TQualifiedName: ' . get_class($this);
707
+            $msg = 'Enum must be a valid TQualifiedName: '.get_class($this);
708 708
             return false;
709 709
         }
710 710
 
711 711
         if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
712
-            $msg = 'Path must be a valid TQualifiedName: ' . get_class($this);
712
+            $msg = 'Path must be a valid TQualifiedName: '.get_class($this);
713 713
             return false;
714 714
         }
715 715
 
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
                 return false;
726 726
             }
727 727
             if (!$this->isObjectNullOrType($type, $this->$key)) {
728
-                $msg = 'Type mismatch - should be ' . $type . ', is ' . get_class($this->$key) . ': ' . get_class($this);
728
+                $msg = 'Type mismatch - should be '.$type.', is '.get_class($this->$key).': '.get_class($this);
729 729
                 return false;
730 730
             }
731 731
         }
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/TEntitySetAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,15 +114,15 @@
 block discarded – undo
114 114
     public function isTEntitySetAttributesOK(&$msg = null)
115 115
     {
116 116
         if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) {
117
-            $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this);
117
+            $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this);
118 118
             return false;
119 119
         }
120 120
         if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) {
121
-            $msg = 'Entity type must be a valid TQualifiedName: ' . get_class($this);
121
+            $msg = 'Entity type must be a valid TQualifiedName: '.get_class($this);
122 122
             return false;
123 123
         }
124 124
         if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) {
125
-            $msg = 'Getter access must be a valid TAccess: ' . get_class($this);
125
+            $msg = 'Getter access must be a valid TAccess: '.get_class($this);
126 126
             return false;
127 127
         }
128 128
 
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/TTypeAttributesTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
     public function isTTypeAttributesValid(&$msg = null)
47 47
     {
48 48
         if (null == $this->name) {
49
-            $msg = 'Name cannot be null: ' . get_class($this);
49
+            $msg = 'Name cannot be null: '.get_class($this);
50 50
             return false;
51 51
         }
52 52
         if (!$this->isTSimpleIdentifierValid($this->name)) {
53
-            $msg = 'Name must be a valid TSimpleIdentifier: ' . get_class($this);
53
+            $msg = 'Name must be a valid TSimpleIdentifier: '.get_class($this);
54 54
             return false;
55 55
         }
56 56
         
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/GInlineExpressionsTrait.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -314,47 +314,47 @@
 block discarded – undo
314 314
     public function isGInlineExpressionsValid(&$msg = null)
315 315
     {
316 316
         if (null != $this->string && !is_string($this->string)) {
317
-            $msg = 'String must be a string: ' . get_class($this);
317
+            $msg = 'String must be a string: '.get_class($this);
318 318
             return false;
319 319
         }
320 320
         if (null != $this->binary && !$this->hexBinary($this->binary)) {
321
-            $msg = 'Binary must be hexadecimal: ' . get_class($this);
321
+            $msg = 'Binary must be hexadecimal: '.get_class($this);
322 322
             return false;
323 323
         }
324 324
         if (null != $this->int && $this->int !== intval($this->int)) {
325
-            $msg = 'Integer must be integral: ' . get_class($this);
325
+            $msg = 'Integer must be integral: '.get_class($this);
326 326
             return false;
327 327
         }
328 328
         if (null != $this->float && $this->float !== floatval($this->float)) {
329
-            $msg = 'Float must be floating-point: ' . get_class($this);
329
+            $msg = 'Float must be floating-point: '.get_class($this);
330 330
             return false;
331 331
         }
332 332
         if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) {
333
-            $msg = 'Guid must be valid GUID: ' . get_class($this);
333
+            $msg = 'Guid must be valid GUID: '.get_class($this);
334 334
             return false;
335 335
         }
336 336
         if (null != $this->bool && $this->bool !== boolval($this->bool)) {
337
-            $msg = 'Bool must be boolean: ' . get_class($this);
337
+            $msg = 'Bool must be boolean: '.get_class($this);
338 338
             return false;
339 339
         }
340 340
         if (null != $this->decimal && $this->decimal !== floatval($this->decimal)) {
341
-            $msg = 'Decimal must be decimal: ' . get_class($this);
341
+            $msg = 'Decimal must be decimal: '.get_class($this);
342 342
             return false;
343 343
         }
344 344
         if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) {
345
-            $msg = 'Enum must be a valid TQualifiedName: ' . get_class($this);
345
+            $msg = 'Enum must be a valid TQualifiedName: '.get_class($this);
346 346
             return false;
347 347
         }
348 348
         if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
349
-            $msg = 'Path must be a valid TQualifiedName: ' . get_class($this);
349
+            $msg = 'Path must be a valid TQualifiedName: '.get_class($this);
350 350
             return false;
351 351
         }
352 352
         if (null != $this->dateTime && $this->dateTime !== $this->dateTime($this->dateTime)) {
353
-            $msg = 'DateTime must be a valid date/time: ' . get_class($this);
353
+            $msg = 'DateTime must be a valid date/time: '.get_class($this);
354 354
             return false;
355 355
         }
356 356
         if (null != $this->dateTimeOffset && $this->dateTimeOffset !== $this->dateTime($this->dateTimeOffset)) {
357
-            $msg = 'DateTimeOffset must be a valid date/time: ' . get_class($this);
357
+            $msg = 'DateTimeOffset must be a valid date/time: '.get_class($this);
358 358
             return false;
359 359
         }
360 360
 
Please login to merge, or discard this patch.