| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function validateIdentifier() |
||
| 33 | { |
||
| 34 | $userID = $this->user->getUserID(); |
||
| 35 | |||
| 36 | if (!is_int($userID)) { |
||
| 37 | throw new UserSpecificationException('Property `userID` must be integer.'); |
||
| 38 | } |
||
| 39 | |||
| 40 | if ($userID <= 0) { |
||
| 41 | throw new UserSpecificationException('Property `userID` must be more than 0.'); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 70 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.