willpower232/TOTPBTF3

View on GitHub
app/Models/Token.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function getQRCode()
    {
        // anonymous function to simplify hexadecimal colour input
        $hexToRGB = function ($input) {
            return array_map('hexdec', str_split(trim($input, '#'), 2));
Severity: Minor
Found in app/Models/Token.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status