| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class AccessLogger |
||
| 10 | { |
||
| 11 | public const TYPE_LOGIN_SUCCESS = 'log.success'; |
||
| 12 | public const TYPE_LOGIN_FAILURE = 'log.fail'; |
||
| 13 | |||
| 14 | public const SUPPORTED_TYPES = [ |
||
| 15 | self::TYPE_LOGIN_SUCCESS, |
||
| 16 | self::TYPE_LOGIN_FAILURE |
||
| 17 | ]; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var EntityManager |
||
| 21 | */ |
||
| 22 | private $em; |
||
| 23 | |||
| 24 | public function __construct(EntityManager $entityManager) |
||
| 25 | { |
||
| 26 | $this->em = $entityManager; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function log(string $type, string $email, ?string $ip): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.