| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 1 | public function getIndexData(): array |
|
| 41 | { |
||
| 42 | 1 | $count = count($this->validations); |
|
| 43 | 1 | $countValid = count(array_filter($this->validations, fn (array $data) => $data['result'])); |
|
| 44 | 1 | $countInvalid = $count - $countValid; |
|
| 45 | |||
| 46 | return [ |
||
| 47 | 'validator' => [ |
||
| 48 | 'count.total' => $count, |
||
| 49 | 'count.valid' => $countValid, |
||
| 50 | 'count.invalid' => $countInvalid, |
||
| 51 | ], |
||
| 55 |
This check looks for private methods that have been defined, but are not used inside the class.