@@ -237,7 +237,7 @@ |
||
| 237 | 237 | if (null != $dependentNavigationProperty) { |
| 238 | 238 | if ($dependentNavigationProperty->getRelationship() != $principalNavigationProperty->getRelationship()) { |
| 239 | 239 | $msg = "If you have both a dependent property and a principal property," |
| 240 | - ." relationship should match"; |
|
| 240 | + ." relationship should match"; |
|
| 241 | 241 | throw new \InvalidArgumentException($msg); |
| 242 | 242 | } |
| 243 | 243 | if ($dependentNavigationProperty->getFromRole() != $principalNavigationProperty->getToRole() |
@@ -688,12 +688,12 @@ |
||
| 688 | 688 | } |
| 689 | 689 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
| 690 | 690 | $msg = $counter . " fields not null. Need minimum of ".$this->gExpressionMinimum. ": " |
| 691 | - . get_class($this); |
|
| 691 | + . get_class($this); |
|
| 692 | 692 | return false; |
| 693 | 693 | } |
| 694 | 694 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
| 695 | 695 | $msg = $counter . " fields not null. Need maximum of ".$this->gExpressionMaximum. ": " |
| 696 | - . get_class($this); |
|
| 696 | + . get_class($this); |
|
| 697 | 697 | return false; |
| 698 | 698 | } |
| 699 | 699 | } |
@@ -169,11 +169,11 @@ discard block |
||
| 169 | 169 | // Check Associations to associationSets |
| 170 | 170 | if (count($associationSets) != count($associationNames)) { |
| 171 | 171 | $msg = "we have " . count($associationSets) . "association sets and " . count($associationNames) |
| 172 | - . " associations, they should be the same"; |
|
| 172 | + . " associations, they should be the same"; |
|
| 173 | 173 | } |
| 174 | 174 | if (count($associationNames) * 2 < count($navigationProperties)) { |
| 175 | 175 | $msg = "we have too many navigation properties. should have no more then double the" |
| 176 | - ." number of associations."; |
|
| 176 | + ." number of associations."; |
|
| 177 | 177 | } |
| 178 | 178 | foreach ($associationNames as $associationName => $associationEnds) { |
| 179 | 179 | if (!array_key_exists($associationName, $associationSets)) { |
@@ -188,23 +188,23 @@ discard block |
||
| 188 | 188 | $roles = [$associationEnds[0]->getRole(), $associationEnds[1]->getRole()]; |
| 189 | 189 | if (!in_array($associationSets[$associationName][0]->getRole(), $roles)) { |
| 190 | 190 | $msg = "association Set role " . $associationSets[$associationName][0]->getRole() |
| 191 | - . "lacks a matching property in the attached association"; |
|
| 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 | 195 | $msg = "association Set role " . $associationSets[$associationName][1]->getRole() |
| 196 | - . "lacks a matching property in the attached association"; |
|
| 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 | 201 | $msg = "Navigation Property Role " . $navProp->getToRole() |
| 202 | - . " lacks a matching Property in the assocation"; |
|
| 202 | + . " lacks a matching Property in the assocation"; |
|
| 203 | 203 | return false; |
| 204 | 204 | } |
| 205 | 205 | if (!in_array($navProp->getFromRole(), $roles)) { |
| 206 | 206 | $msg = "Navigation Property Role " .$navProp->getToRole() |
| 207 | - . " lacks a matching Property in the assocation"; |
|
| 207 | + . " lacks a matching Property in the assocation"; |
|
| 208 | 208 | return false; |
| 209 | 209 | } |
| 210 | 210 | } |
@@ -32,11 +32,11 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | private $type = null; |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * Gets as type |
|
| 37 | - * |
|
| 38 | - * @return string |
|
| 39 | - */ |
|
| 35 | + /** |
|
| 36 | + * Gets as type |
|
| 37 | + * |
|
| 38 | + * @return string |
|
| 39 | + */ |
|
| 40 | 40 | public function getType() |
| 41 | 41 | { |
| 42 | 42 | return $this->type; |