FML/Controls/Quads/Quad_BgsChallengeMedals.php
The class Quad_BgsChallengeMedals is not named in CamelCase. Open
Open
class Quad_BgsChallengeMedals 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_BGSILVER but found SUBSTYLE_BgSilver Open
Open
const SUBSTYLE_BgSilver = 'BgSilver';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGNADEO but found SUBSTYLE_BgNadeo Open
Open
const SUBSTYLE_BgNadeo = 'BgNadeo';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGPLAYED but found SUBSTYLE_BgPlayed Open
Open
const SUBSTYLE_BgPlayed = 'BgPlayed';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGNOTPLAYED but found SUBSTYLE_BgNotPlayed Open
Open
const SUBSTYLE_BgNotPlayed = 'BgNotPlayed';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBRONZE but found SUBSTYLE_BgBronze Open
Open
const SUBSTYLE_BgBronze = 'BgBronze';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGOLD but found SUBSTYLE_BgGold Open
Open
const SUBSTYLE_BgGold = 'BgGold';
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks
Constant SUBSTYLE_BgGold should be defined in uppercase Open
Open
const SUBSTYLE_BgGold = 'BgGold';
- 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_BgBronze should be defined in uppercase Open
Open
const SUBSTYLE_BgBronze = 'BgBronze';
- 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_BgNadeo should be defined in uppercase Open
Open
const SUBSTYLE_BgNadeo = 'BgNadeo';
- 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_BgPlayed should be defined in uppercase Open
Open
const SUBSTYLE_BgPlayed = 'BgPlayed';
- 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_BgNotPlayed should be defined in uppercase Open
Open
const SUBSTYLE_BgNotPlayed = 'BgNotPlayed';
- 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_BgSilver should be defined in uppercase Open
Open
const SUBSTYLE_BgSilver = 'BgSilver';
- 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_BgsChallengeMedals" is not in camel caps format Open
Open
class Quad_BgsChallengeMedals extends Quad
- Exclude checks