| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | readonly class PasswordResetUserFinderRepository |
||
| 9 | { |
||
| 10 | 6 | public function __construct( |
|
| 13 | 6 | } |
|
| 14 | |||
| 15 | /** |
||
| 16 | * Return user with given id if it exists |
||
| 17 | * If there is no user, an empty object is returned because: |
||
| 18 | * > It is considered a best practice to NEVER return null when returning a collection or enumerable |
||
| 19 | * Source: https://stackoverflow.com/a/1970001/9013718. |
||
| 20 | * |
||
| 21 | * @param string|null $email |
||
| 22 | * |
||
| 23 | * @return UserData |
||
| 24 | */ |
||
| 25 | 2 | public function findUserByEmail(?string $email): UserData |
|
| 38 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths