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