| Conditions | 4 |
| Paths | 8 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4.5923 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function create(): ValidatorInterface |
|
| 26 | { |
||
| 27 | 1 | $validator = new Validator(); |
|
| 28 | |||
| 29 | 1 | if ($this->translator !== null) { |
|
| 30 | $validator = $validator->withTranslator($this->translator); |
||
| 31 | } |
||
| 32 | |||
| 33 | 1 | if ($this->translationDomain !== null) { |
|
| 34 | $validator = $validator->translationDomain($this->translationDomain); |
||
|
|
|||
| 35 | } |
||
| 36 | |||
| 37 | 1 | if ($this->translationLocale !== null) { |
|
| 38 | $validator = $validator->translationLocale($this->translationLocale); |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | return $validator; |
|
| 42 | } |
||
| 44 |
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.