steeffeen/FancyManiaLinks

View on GitHub

Showing 2,233 of 2,233 total issues

Constant SUBSTYLE_EchelonSilver2 should be defined in uppercase
Open

    const SUBSTYLE_EchelonSilver2 = 'EchelonSilver2';

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->text) {
            $domElement->setAttribute("text", $this->text);
Severity: Minor
Found in FML/Controls/Label.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_LoadTrack should be defined in uppercase
Open

    const SUBSTYLE_LoadTrack        = 'LoadTrack';

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_Default should be defined in uppercase
Open

    const STYLE_Default                    = 'Default';
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 SUBSTYLE_Manialink should be defined in uppercase
Open

    const SUBSTYLE_Manialink        = 'Manialink';

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_TextButtonSmall should be defined in uppercase
Open

    const STYLE_TextButtonSmall            = 'TextButtonSmall';
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 SUBSTYLE_MedalCount should be defined in uppercase
Open

    const SUBSTYLE_MedalCount       = 'MedalCount';

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_TextRaceMessage should be defined in uppercase
Open

    const STYLE_TextRaceMessage            = 'TextRaceMessage';
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 SUBSTYLE_CartoucheLine should be defined in uppercase
Open

    const SUBSTYLE_CartoucheLine        = 'CartoucheLine';

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_Tv should be defined in uppercase
Open

    const SUBSTYLE_Tv                   = 'Tv';

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_BgButtonSmall should be defined in uppercase
Open

    const SUBSTYLE_BgButtonSmall       = 'BgButtonSmall';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgCard2 should be defined in uppercase
Open

    const SUBSTYLE_BgCard2             = 'BgCard2';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgCardFolder should be defined in uppercase
Open

    const SUBSTYLE_BgCardFolder        = 'BgCardFolder';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgColorContour should be defined in uppercase
Open

    const SUBSTYLE_BgColorContour      = 'BgColorContour';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgEmpty should be defined in uppercase
Open

    const SUBSTYLE_BgEmpty             = 'BgEmpty';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgGradBottom should be defined in uppercase
Open

    const SUBSTYLE_BgGradBottom        = 'BgGradBottom';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgGradLeft should be defined in uppercase
Open

    const SUBSTYLE_BgGradLeft          = 'BgGradLeft';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgIconBorder should be defined in uppercase
Open

    const SUBSTYLE_BgIconBorder        = 'BgIconBorder';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_BgProgressBar should be defined in uppercase
Open

    const SUBSTYLE_BgProgressBar       = 'BgProgressBar';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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_NavButtonQuit should be defined in uppercase
Open

    const SUBSTYLE_NavButtonQuit       = 'NavButtonQuit';
Severity: Minor
Found in FML/Controls/Quads/Quad_Bgs1.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

Severity
Category
Status
Source
Language