FML/Controls/Quads/Quad_EnergyBar.php
The class Quad_EnergyBar is not named in CamelCase. Open
Open
class Quad_EnergyBar 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_BGTEXT but found SUBSTYLE_BgText Open
Open
const SUBSTYLE_BgText = 'BgText';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_HEADERGAUGERIGHT but found SUBSTYLE_HeaderGaugeRight Open
Open
const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
- 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_ENERGYBAR_0_25 but found SUBSTYLE_EnergyBar_0_25 Open
Open
const SUBSTYLE_EnergyBar_0_25 = 'EnergyBar_0.25';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR but found SUBSTYLE_EnergyBar Open
Open
const SUBSTYLE_EnergyBar = 'EnergyBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR_THIN but found SUBSTYLE_EnergyBar_Thin Open
Open
const SUBSTYLE_EnergyBar_Thin = 'EnergyBar_Thin';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_HEADERGAUGELEFT but found SUBSTYLE_HeaderGaugeLeft Open
Open
const SUBSTYLE_HeaderGaugeLeft = 'HeaderGaugeLeft';
- Exclude checks
Constant SUBSTYLE_EnergyBar_0_25 should be defined in uppercase Open
Open
const SUBSTYLE_EnergyBar_0_25 = 'EnergyBar_0.25';
- 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_BgText should be defined in uppercase Open
Open
const SUBSTYLE_BgText = 'BgText';
- 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_EnergyBar_Thin should be defined in uppercase Open
Open
const SUBSTYLE_EnergyBar_Thin = 'EnergyBar_Thin';
- 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_HeaderGaugeLeft should be defined in uppercase Open
Open
const SUBSTYLE_HeaderGaugeLeft = 'HeaderGaugeLeft';
- 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_HeaderGaugeRight should be defined in uppercase Open
Open
const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
- 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_EnergyBar should be defined in uppercase Open
Open
const SUBSTYLE_EnergyBar = 'EnergyBar';
- 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_EnergyBar" is not in camel caps format Open
Open
class Quad_EnergyBar extends Quad
- Exclude checks