steeffeen/FancyManiaLinks

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

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

The class Quad_BgsButtons is not named in CamelCase.
Open

class Quad_BgsButtons extends Quad
{

    /*
     * Constants

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_BGBUTTONMEDIUM but found SUBSTYLE_BgButtonMedium
Open

    const SUBSTYLE_BgButtonMedium         = 'BgButtonMedium';

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONMEDIUMSELECTOR but found SUBSTYLE_BgButtonMediumSelector
Open

    const SUBSTYLE_BgButtonMediumSelector = 'BgButtonMediumSelector';

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONLARGE but found SUBSTYLE_BgButtonLarge
Open

    const SUBSTYLE_BgButtonLarge          = 'BgButtonLarge';

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONMEDIUMSPECIAL but found SUBSTYLE_BgButtonMediumSpecial
Open

    const SUBSTYLE_BgButtonMediumSpecial  = 'BgButtonMediumSpecial';

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONXSMALL but found SUBSTYLE_BgButtonXSmall
Open

    const SUBSTYLE_BgButtonXSmall         = 'BgButtonXSmall';

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSMALL but found SUBSTYLE_BgButtonSmall
Open

    const SUBSTYLE_BgButtonSmall          = 'BgButtonSmall';

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

}

Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSMALL2 but found SUBSTYLE_BgButtonSmall2
Open

    const SUBSTYLE_BgButtonSmall2         = 'BgButtonSmall2';

Constant SUBSTYLE_BgButtonMediumSpecial should be defined in uppercase
Open

    const SUBSTYLE_BgButtonMediumSpecial  = 'BgButtonMediumSpecial';

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

    const SUBSTYLE_BgButtonLarge          = 'BgButtonLarge';

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

    const SUBSTYLE_BgButtonMedium         = 'BgButtonMedium';

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

    const SUBSTYLE_BgButtonMediumSelector = 'BgButtonMediumSelector';

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

    const SUBSTYLE_BgButtonSmall          = 'BgButtonSmall';

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

    const SUBSTYLE_BgButtonXSmall         = 'BgButtonXSmall';

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_BgsButtons" is not in camel caps format
Open

class Quad_BgsButtons extends Quad

There are no issues that match your filters.

Category
Status