@@ -17,7 +17,7 @@ |
||
| 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)) { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $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,}/"; |
| 14 | 14 | |
| 15 | 15 | if (!is_string($string)) { |
| 16 | - $msg = "Input must be a string: " . get_class($this); |
|
| 16 | + $msg = "Input must be a string: ".get_class($this); |
|
| 17 | 17 | throw new \InvalidArgumentException($msg); |
| 18 | 18 | } |
| 19 | 19 | if ($this->isEDMSimpleTypeValid($string)) { |
@@ -17,7 +17,7 @@ |
||
| 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)) { |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -17,7 +17,7 @@ |
||
| 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)) { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | "GeometricMultiPoint", "GeometricMultiLineString", "GeometricMultiPolygon", "GeometryCollection", |
| 14 | 14 | "Guid", "Int16", "Int32", "Int64", "String", "SByte"]; |
| 15 | 15 | if (!is_string($string)) { |
| 16 | - $msg = "Input must be a string: " . get_class($this); |
|
| 16 | + $msg = "Input must be a string: ".get_class($this); |
|
| 17 | 17 | throw new \InvalidArgumentException($msg); |
| 18 | 18 | } |
| 19 | 19 | if (!in_array($string, $validType)) { |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -687,29 +687,29 @@ discard block |
||
| 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 |
||
| 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 | } |