FML/Controls/Quads/Quad_BgsButtons.php
The class Quad_BgsButtons is not named in CamelCase. Open
Open
class Quad_BgsButtons extends Quad
{
/*
* Constants
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonMedium = 'BgButtonMedium';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONMEDIUMSELECTOR but found SUBSTYLE_BgButtonMediumSelector Open
Open
const SUBSTYLE_BgButtonMediumSelector = 'BgButtonMediumSelector';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONLARGE but found SUBSTYLE_BgButtonLarge Open
Open
const SUBSTYLE_BgButtonLarge = 'BgButtonLarge';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONMEDIUMSPECIAL but found SUBSTYLE_BgButtonMediumSpecial Open
Open
const SUBSTYLE_BgButtonMediumSpecial = 'BgButtonMediumSpecial';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONXSMALL but found SUBSTYLE_BgButtonXSmall Open
Open
const SUBSTYLE_BgButtonXSmall = 'BgButtonXSmall';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSMALL but found SUBSTYLE_BgButtonSmall Open
Open
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSMALL2 but found SUBSTYLE_BgButtonSmall2 Open
Open
const SUBSTYLE_BgButtonSmall2 = 'BgButtonSmall2';
- Exclude checks
Constant SUBSTYLE_BgButtonMediumSpecial should be defined in uppercase Open
Open
const SUBSTYLE_BgButtonMediumSpecial = 'BgButtonMediumSpecial';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonLarge = 'BgButtonLarge';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonMedium = 'BgButtonMedium';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonMediumSelector = 'BgButtonMediumSelector';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonSmall2 = 'BgButtonSmall2';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
- Read upRead up
- Exclude checks
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
Open
const SUBSTYLE_BgButtonXSmall = 'BgButtonXSmall';
- Read upRead up
- Exclude checks
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
Open
class Quad_BgsButtons extends Quad
- Exclude checks