Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
46 | 3 | public function getSummary(): array |
|
47 | { |
||
48 | 3 | if (!$this->isActive()) { |
|
49 | 2 | return []; |
|
50 | } |
||
51 | 1 | $lastIdentity = end($this->identities); |
|
52 | 1 | return [ |
|
53 | 1 | 'identity' => [ |
|
54 | 1 | 'lastId' => is_array($lastIdentity) ? $lastIdentity['id'] : null, |
|
55 | 1 | 'total' => count($this->identities), |
|
56 | 1 | ], |
|
60 |
This check looks for private methods that have been defined, but are not used inside the class.