pluswerk/secure_login

View on GitHub
Classes/Persistence/DatabaseHandler.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method logFailedAttempt has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function logFailedAttempt($authIdentifier, $hashedFailureValue, $type, $authKey, $timestamp = null)
    {
        if ($timestamp === null) {
            $timestamp = time();
        }
Severity: Minor
Found in Classes/Persistence/DatabaseHandler.php - About 1 hr to fix

    Method addBlockade has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function addBlockade($type, $authKey, $authIdentifier, $reason, $blockingPeriodInSeconds, $timestamp = null)
    Severity: Minor
    Found in Classes/Persistence/DatabaseHandler.php - About 45 mins to fix

      Method logFailedAttempt has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function logFailedAttempt($authIdentifier, $hashedFailureValue, $type, $authKey, $timestamp = null)
      Severity: Minor
      Found in Classes/Persistence/DatabaseHandler.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status