| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function getValidatorInstance() |
||
|
|
|||
| 26 | { |
||
| 27 | if (method_exists($this, 'process')) { |
||
| 28 | $this->replace($this->container->call([$this, 'process'], [$this->all()])); |
||
| 29 | } else { |
||
| 30 | $this->replace(array_filter(array_map(function ($item) { |
||
| 31 | return is_string($item) ? trim($item) : $item; |
||
| 32 | }, $this->all()))); |
||
| 33 | } |
||
| 34 | |||
| 35 | return parent::getValidatorInstance(); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.