Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class UserRepository extends UserRepo implements UserRepositoryInterface |
||
12 | { |
||
13 | public function getUserEntityByUserCredentials( |
||
28 | } |
||
29 | |||
30 | |||
31 | /** |
||
32 | * @param $email |
||
33 | * @param $password |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function checkUserCredentials($email, $password) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param $email |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getUserDetails($email) |
||
58 | } |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: