steeffeen/FancyManiaLinks

View on GitHub

Showing 2,233 of 2,233 total issues

Constant SUBSTYLE_BgButtonSmall2 should be defined in uppercase
Open

    const SUBSTYLE_BgButtonSmall2         = 'BgButtonSmall2';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_BgBronze should be defined in uppercase
Open

    const SUBSTYLE_BgBronze    = 'BgBronze';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_BgPlayed should be defined in uppercase
Open

    const SUBSTYLE_BgPlayed    = 'BgPlayed';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_BgPlayerCard should be defined in uppercase
Open

    const SUBSTYLE_BgPlayerCard        = 'BgPlayerCard';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_Down should be defined in uppercase
Open

    const SUBSTYLE_Down       = 'Down';
Severity: Minor
Found in FML/Controls/Quads/Quad_Copilot.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_EchelonSilver3 should be defined in uppercase
Open

    const SUBSTYLE_EchelonSilver3 = 'EchelonSilver3';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_LadderPoints should be defined in uppercase
Open

    const SUBSTYLE_LadderPoints     = 'LadderPoints';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_ProfileAdvanced should be defined in uppercase
Open

    const SUBSTYLE_ProfileAdvanced  = 'ProfileAdvanced';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant SUBSTYLE_Stunts should be defined in uppercase
Open

    const SUBSTYLE_Stunts           = 'Stunts';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant FORMAT_Password should be defined in uppercase
Open

    const FORMAT_Password    = "Password";
Severity: Minor
Found in FML/Controls/Entry.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_CardButtonMediumWide should be defined in uppercase
Open

    const STYLE_CardButtonMediumWide = 'CardButtonMediumWide';
Severity: Minor
Found in FML/Controls/Labels/Label_Button.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_CardButtonSmall should be defined in uppercase
Open

    const STYLE_CardButtonSmall      = 'CardButtonSmall';
Severity: Minor
Found in FML/Controls/Labels/Label_Button.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_ListItemMedal should be defined in uppercase
Open

    const STYLE_ListItemMedal              = 'ListItemMedal';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_Manialink_Body should be defined in uppercase
Open

    const STYLE_Manialink_Body             = 'Manialink_Body';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_StyleValueYellowSmall should be defined in uppercase
Open

    const STYLE_StyleValueYellowSmall      = 'StyleValueYellowSmall';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_TextCardScores2 should be defined in uppercase
Open

    const STYLE_TextCardScores2            = 'TextCardScores2';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_TextPlayerCardScore should be defined in uppercase
Open

    const STYLE_TextPlayerCardScore        = 'TextPlayerCardScore';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Constant STYLE_TrackListLine should be defined in uppercase
Open

    const STYLE_TrackListLine              = 'TrackListLine';
Severity: Minor
Found in FML/Controls/Labels/Label_Text.php by phpmd

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

The method render() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10.
Open

    public function render(\DOMDocument $domDocument)
    {
        $domElement = parent::render($domDocument);
        if ($this->imageUrl) {
            $domElement->setAttribute("image", $this->imageUrl);
Severity: Minor
Found in FML/Controls/Quad.php by phpmd

CyclomaticComplexity

Since: 0.1

Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

Example

// Cyclomatic Complexity = 11
class Foo {
1   public function example() {
2       if ($a == $b) {
3           if ($a1 == $b1) {
                fiddle();
4           } elseif ($a2 == $b2) {
                fiddle();
            } else {
                fiddle();
            }
5       } elseif ($c == $d) {
6           while ($c == $d) {
                fiddle();
            }
7        } elseif ($e == $f) {
8           for ($n = 0; $n < $h; $n++) {
                fiddle();
            }
        } else {
            switch ($z) {
9               case 1:
                    fiddle();
                    break;
10              case 2:
                    fiddle();
                    break;
11              case 3:
                    fiddle();
                    break;
                default:
                    fiddle();
                    break;
            }
        }
    }
}

Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

Constant SUBSTYLE_LadderPoints should be defined in uppercase
Open

    const SUBSTYLE_LadderPoints         = 'LadderPoints';

ConstantNamingConventions

Since: 0.2

Class/Interface constant names should always be defined in uppercase.

Example

class Foo {
    const MY_NUM = 0; // ok
    const myTest = ""; // fail
}

Source https://phpmd.org/rules/naming.html#constantnamingconventions

Severity
Category
Status
Source
Language