Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 20% |
Changes | 0 |
1 | <?php |
||
13 | class UserRepository extends Select\Repository implements IdentityRepositoryInterface |
||
14 | { |
||
15 | 1 | public function findAll(array $scope = [], array $orderBy = []): DataReaderInterface |
|
18 | } |
||
19 | |||
20 | private function findIdentityBy(string $field, string $value): ?IdentityInterface |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param string $id |
||
27 | * |
||
28 | * @return IdentityInterface|User|null |
||
29 | */ |
||
30 | public function findIdentity(string $id): ?IdentityInterface |
||
31 | { |
||
32 | return $this->findByPK($id); |
||
33 | } |
||
34 | |||
35 | public function findIdentityByToken(string $token, string $type = null): ?IdentityInterface |
||
|
|||
36 | { |
||
37 | return $this->findIdentityBy('token', $token); |
||
38 | } |
||
39 | |||
40 | public function findByLogin(string $login): ?IdentityInterface |
||
43 | } |
||
44 | } |
||
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.