Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class CAttendanceSheetRepository extends ResourceRepository |
||
14 | { |
||
15 | public function __construct(ManagerRegistry $registry) |
||
16 | { |
||
17 | parent::__construct($registry, CAttendanceSheet::class); |
||
18 | } |
||
19 | |||
20 | public function getUserScore(int $userId, int $attendanceId, ?int $groupId = null): int |
||
37 | } |
||
38 | } |
||
39 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: