@@ -31,6 +31,7 @@ |
||
| 31 | 31 | * Gets or sets the inner value |
| 32 | 32 | * |
| 33 | 33 | * @param \DateInterval ...$value |
| 34 | + * @param \DateInterval[] $value |
|
| 34 | 35 | * @return \DateInterval |
| 35 | 36 | */ |
| 36 | 37 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | * Gets or sets the inner value |
| 32 | 32 | * |
| 33 | 33 | * @param integer ...$value |
| 34 | + * @param integer[] $value |
|
| 34 | 35 | * @return integer |
| 35 | 36 | */ |
| 36 | 37 | public function value(...$value) |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $rawDate = $input; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - return $rawDate->format('Y-m-d').'T'.$rawDate->format('H:i:s'); |
|
| 85 | + return $rawDate->format('Y-m-d') . 'T' . $rawDate->format('H:i:s'); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | public function hexBinary($input) |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | return true; |
| 76 | 76 | } |
| 77 | 77 | if (!$object instanceof $instanceOf) { |
| 78 | - $msg = "Supplied object not an instance of ".$instanceOf. ": " . get_class($this); |
|
| 78 | + $msg = "Supplied object not an instance of " . $instanceOf . ": " . get_class($this); |
|
| 79 | 79 | return false; |
| 80 | 80 | } |
| 81 | 81 | return $object->isOK($msg); |
@@ -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 | } |
@@ -687,12 +687,12 @@ 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 | } |
@@ -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 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | $numParms = count($this->parameter); |
| 143 | - for ($i = 0; $i < $numParms -2; $i++) { |
|
| 143 | + for ($i = 0; $i < $numParms - 2; $i++) { |
|
| 144 | 144 | $outName = $this->parameter[$i]->getName(); |
| 145 | 145 | for ($j = $i + 1; $j < $numParms - 1; $j++) { |
| 146 | 146 | $inName = $this->parameter[$j]->getName(); |
@@ -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 | } |
@@ -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 | |
@@ -203,7 +203,7 @@ discard block |
||
| 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 | } |
@@ -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)) { |
@@ -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; |