@@ -147,7 +147,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -11,7 +11,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -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)) { |