| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | private function validateName() |
||
| 60 | { |
||
| 61 | $name = $this->user->getName(); |
||
| 62 | if (\mb_strlen($name) < 1) { |
||
| 63 | throw new UserSpecificationException('`name` length should be more than 1 character.'); |
||
| 64 | } |
||
| 65 | if (\mb_strlen($name) > 50) { |
||
| 66 | throw new UserSpecificationException('`name` length should be less than 50 characters.'); |
||
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 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.