@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | public function setName($name) |
83 | 83 | { |
84 | 84 | if (!$this->isTSimpleIdentifierValid($name)) { |
85 | - $msg = "Name(" . $name . ") must be a valid TSimpleIdentifier"; |
|
85 | + $msg = "Name(".$name.") must be a valid TSimpleIdentifier"; |
|
86 | 86 | throw new \InvalidArgumentException($msg); |
87 | 87 | } |
88 | 88 | $this->name = $name; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | public function isOK(&$msg = null) |
398 | 398 | { |
399 | 399 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
400 | - $msg = "Name(" . $this->name . ") must be a valid TSimpleIdentifier " . __FILE__ . ":" . __LINE__; |
|
400 | + $msg = "Name(".$this->name.") must be a valid TSimpleIdentifier ".__FILE__.":".__LINE__; |
|
401 | 401 | return false; |
402 | 402 | } |
403 | 403 | |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | } |
451 | 451 | foreach ($this->associationSet as $assocationSet) { |
452 | 452 | if (!in_array($assocationSet->getEnd()[0]->getEntitySet(), $entityNames)) { |
453 | - $msg = "The entitysets for assocations must have a valid entity set. " . $assocationSet->getName() . " Does not"; |
|
453 | + $msg = "The entitysets for assocations must have a valid entity set. ".$assocationSet->getName()." Does not"; |
|
454 | 454 | return false; |
455 | 455 | } |
456 | 456 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | die($this->getNamespace()); |
145 | 145 | return false; |
146 | 146 | }*/ |
147 | - $eSetType = str_replace($this->getNamespace() . ".", "", $eSetType); |
|
147 | + $eSetType = str_replace($this->getNamespace().".", "", $eSetType); |
|
148 | 148 | if (!in_array($eSetType, $entityTypeNames)) { |
149 | 149 | $msg = "entitySet Types should have a matching type name in entity Types"; |
150 | 150 | return false; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | |
154 | 154 | // Check Associations to assocationSets |
155 | 155 | if (count($assocationSets) != count($associationNames)) { |
156 | - $msg = "we have " . count($assocationSets) . "assocation sets and " . count($associationNames) . " Assocations, they should be the same"; |
|
156 | + $msg = "we have ".count($assocationSets)."assocation sets and ".count($associationNames)." Assocations, they should be the same"; |
|
157 | 157 | } |
158 | 158 | if (count($associationNames) * 2 < $navigationProperties) { |
159 | 159 | $msg = "we have two many navigation propertys. should have no more then double the number of assocations."; |
@@ -161,20 +161,20 @@ discard block |
||
161 | 161 | |
162 | 162 | foreach ($associationNames as $assocationName => $assocationEnds) { |
163 | 163 | if (!array_key_exists($assocationName, $assocationSets)) { |
164 | - $msg = "assocation " . $assocationName . " exists without matching assocationSet"; |
|
164 | + $msg = "assocation ".$assocationName." exists without matching assocationSet"; |
|
165 | 165 | return false; |
166 | 166 | } |
167 | 167 | |
168 | 168 | if (!array_key_exists($assocationName, $navigationProperties)) { |
169 | - $msg = "assocation " . $assocationName . " exists without matching Natvigation Property"; |
|
169 | + $msg = "assocation ".$assocationName." exists without matching Natvigation Property"; |
|
170 | 170 | return false; |
171 | 171 | } |
172 | 172 | if (!in_array($assocationSets[$assocationName][0]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) { |
173 | - $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation"; |
|
173 | + $msg = "assocation Set role ".$assocationSets[$assocationName][0]->getName."lacks a matching property in the attached assocation"; |
|
174 | 174 | return false; |
175 | 175 | } |
176 | 176 | if (!in_array($assocationSets[$assocationName][1]->getName, [$assocationEnds[0]->getName, $assocationEnds[1]->getName])) { |
177 | - $msg = "assocation Set role " . $assocationSets[$assocationName][0]->getName . "lacks a matching property in the attached assocation"; |
|
177 | + $msg = "assocation Set role ".$assocationSets[$assocationName][0]->getName."lacks a matching property in the attached assocation"; |
|
178 | 178 | return false; |
179 | 179 | } |
180 | 180 | } |