steeffeen/FancyManiaLinks

View on GitHub
FML/Controls/Quads/Quad_EnergyBar.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

The class Quad_EnergyBar is not named in CamelCase.
Open

class Quad_EnergyBar extends Quad
{

    /*
     * Constants
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

Class constants must be uppercase; expected SUBSTYLE_HEADERGAUGERIGHT but found SUBSTYLE_HeaderGaugeRight
Open

    const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';

Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR_THIN but found SUBSTYLE_EnergyBar_Thin
Open

    const SUBSTYLE_EnergyBar_Thin   = 'EnergyBar_Thin';

Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR_0_25 but found SUBSTYLE_EnergyBar_0_25
Open

    const SUBSTYLE_EnergyBar_0_25   = 'EnergyBar_0.25';

The closing brace for the class must go on the next line after the body
Open

}

Class constants must be uppercase; expected SUBSTYLE_HEADERGAUGELEFT but found SUBSTYLE_HeaderGaugeLeft
Open

    const SUBSTYLE_HeaderGaugeLeft  = 'HeaderGaugeLeft';

Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR but found SUBSTYLE_EnergyBar
Open

    const SUBSTYLE_EnergyBar        = 'EnergyBar';

Class constants must be uppercase; expected SUBSTYLE_BGTEXT but found SUBSTYLE_BgText
Open

    const SUBSTYLE_BgText           = 'BgText';

Constant SUBSTYLE_EnergyBar should be defined in uppercase
Open

    const SUBSTYLE_EnergyBar        = 'EnergyBar';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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_HeaderGaugeLeft should be defined in uppercase
Open

    const SUBSTYLE_HeaderGaugeLeft  = 'HeaderGaugeLeft';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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_BgText should be defined in uppercase
Open

    const SUBSTYLE_BgText           = 'BgText';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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_EnergyBar_Thin should be defined in uppercase
Open

    const SUBSTYLE_EnergyBar_Thin   = 'EnergyBar_Thin';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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_HeaderGaugeRight should be defined in uppercase
Open

    const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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_EnergyBar_0_25 should be defined in uppercase
Open

    const SUBSTYLE_EnergyBar_0_25   = 'EnergyBar_0.25';
Severity: Minor
Found in FML/Controls/Quads/Quad_EnergyBar.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

Class name "Quad_EnergyBar" is not in camel caps format
Open

class Quad_EnergyBar extends Quad

There are no issues that match your filters.

Category
Status