public function getAttemptsLeftWithSameIp(string $ipAddress): int
    {
        $attemptsLeft = ((int) $this->maxAttemptsForIpAddress) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameIp($ipAddress, $this->banTimeInSeconds);

        return \max(0, $attemptsLeft);
    }
public function getAttemptsLeftWithSameIp(string $ipAddress): int
    {
        $attemptsLeft = ((int) $this->maxAttemptsForIpAddress) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameIp($ipAddress, $this->banTimeInSeconds);

        return \max(0, $attemptsLeft);
    }
public function getAttemptsLeftWithSameIp ( string $ ipAddress ) : int { $ attemptsLeft = ( ( int ) $ this -> maxAttemptsForIpAddress ) - $ this -> enhancedAuthenticationMapper -> fetchAttemptsWithSameIp ( $ ipAddress , $ this -> banTimeInSeconds ) ; return \ max ( 0 , $ attemptsLeft ) ; }
Return how many attemps are left for same ip.

@param string $ipAddress

@return int Number of attempts with same ip.
Return how many attemps are left for same ip .