| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class UserFinderRepository |
||
| 8 | { |
||
| 9 | // Fields without password |
||
| 10 | private array $fields = [ |
||
| 11 | 'id', |
||
| 12 | 'first_name', |
||
| 13 | 'last_name', |
||
| 14 | 'email', |
||
| 15 | 'user_role_id', |
||
| 16 | 'status', |
||
| 17 | 'updated_at', |
||
| 18 | 'created_at', |
||
| 19 | 'theme', |
||
| 20 | 'language', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | 203 | public function __construct( |
|
| 24 | private readonly QueryFactory $queryFactory, |
||
| 25 | ) { |
||
| 26 | 203 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Return user with given id if it exists |
||
| 30 | * otherwise null. |
||
| 31 | * |
||
| 32 | * @param int $id |
||
| 33 | * |
||
| 34 | * @return array user row |
||
| 35 | */ |
||
| 36 | 157 | public function findUserById(int $id): array |
|
| 44 | } |
||
| 45 | } |
||
| 46 |
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