The class Label_Button is not named in CamelCase. Open
class Label_Button extends Label
{
/*
* 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 STYLE_CARDBUTTONMEDIUMWIDE but found STYLE_CardButtonMediumWide Open
const STYLE_CardButtonMediumWide = 'CardButtonMediumWide';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLWIDE but found STYLE_CardButtonSmallWide Open
const STYLE_CardButtonSmallWide = 'CardButtonSmallWide';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLS but found STYLE_CardButtonSmallS Open
const STYLE_CardButtonSmallS = 'CardButtonSmallS';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDMAIN_TOOL but found STYLE_CardMain_Tool Open
const STYLE_CardMain_Tool = 'CardMain_Tool';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDMAIN_TOOL_NOBG but found STYLE_CardMain_Tool_NoBg Open
const STYLE_CardMain_Tool_NoBg = 'CardMain_Tool_NoBg';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUMXS but found STYLE_CardButtonMediumXS Open
const STYLE_CardButtonMediumXS = 'CardButtonMediumXS';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLXS but found STYLE_CardButtonSmallXS Open
const STYLE_CardButtonSmallXS = 'CardButtonSmallXS';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDMAIN_TOOL_NOBG2 but found STYLE_CardMain_Tool_NoBg2 Open
const STYLE_CardMain_Tool_NoBg2 = 'CardMain_Tool_NoBg2';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUM but found STYLE_CardButtonMedium Open
const STYLE_CardButtonMedium = 'CardButtonMedium';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUMXL but found STYLE_CardButtonMediumXL Open
const STYLE_CardButtonMediumXL = 'CardButtonMediumXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUMXXXL but found STYLE_CardButtonMediumXXXL Open
const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLL but found STYLE_CardButtonSmallL Open
const STYLE_CardButtonSmallL = 'CardButtonSmallL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUMS but found STYLE_CardButtonMediumS Open
const STYLE_CardButtonMediumS = 'CardButtonMediumS';
- Exclude checks
The closing brace for the class must go on the next line after the body Open
}
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUML but found STYLE_CardButtonMediumL Open
const STYLE_CardButtonMediumL = 'CardButtonMediumL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLXL but found STYLE_CardButtonSmallXL Open
const STYLE_CardButtonSmallXL = 'CardButtonSmallXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLXXL but found STYLE_CardButtonSmallXXL Open
const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALLXXXL but found STYLE_CardButtonSmallXXXL Open
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONMEDIUMXXL but found STYLE_CardButtonMediumXXL Open
const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDBUTTONSMALL but found STYLE_CardButtonSmall Open
const STYLE_CardButtonSmall = 'CardButtonSmall';
- Exclude checks
Class constants must be uppercase; expected STYLE_CARDMAIN_QUIT but found STYLE_CardMain_Quit Open
const STYLE_CardMain_Quit = 'CardMain_Quit';
- Exclude checks
Constant STYLE_CardMain_Tool should be defined in uppercase Open
const STYLE_CardMain_Tool = 'CardMain_Tool';
- 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 STYLE_CardButtonSmallXL should be defined in uppercase Open
const STYLE_CardButtonSmallXL = 'CardButtonSmallXL';
- 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 STYLE_CardMain_Tool_NoBg should be defined in uppercase Open
const STYLE_CardMain_Tool_NoBg = 'CardMain_Tool_NoBg';
- 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 STYLE_CardButtonMediumXXL should be defined in uppercase Open
const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL';
- 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 STYLE_CardButtonSmall should be defined in uppercase Open
const STYLE_CardButtonSmall = 'CardButtonSmall';
- 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 STYLE_CardButtonMediumXS should be defined in uppercase Open
const STYLE_CardButtonMediumXS = 'CardButtonMediumXS';
- 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 STYLE_CardButtonSmallXXL should be defined in uppercase Open
const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL';
- 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 STYLE_CardButtonMediumS should be defined in uppercase Open
const STYLE_CardButtonMediumS = 'CardButtonMediumS';
- 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 STYLE_CardButtonSmallWide should be defined in uppercase Open
const STYLE_CardButtonSmallWide = 'CardButtonSmallWide';
- 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 STYLE_CardButtonSmallXS should be defined in uppercase Open
const STYLE_CardButtonSmallXS = 'CardButtonSmallXS';
- 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 STYLE_CardButtonMediumWide should be defined in uppercase Open
const STYLE_CardButtonMediumWide = 'CardButtonMediumWide';
- 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 STYLE_CardButtonSmallXXXL should be defined in uppercase Open
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
- 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 STYLE_CardButtonMedium should be defined in uppercase Open
const STYLE_CardButtonMedium = 'CardButtonMedium';
- 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 STYLE_CardButtonMediumXL should be defined in uppercase Open
const STYLE_CardButtonMediumXL = 'CardButtonMediumXL';
- 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 STYLE_CardButtonMediumXXXL should be defined in uppercase Open
const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL';
- 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 STYLE_CardMain_Quit should be defined in uppercase Open
const STYLE_CardMain_Quit = 'CardMain_Quit';
- 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 STYLE_CardMain_Tool_NoBg2 should be defined in uppercase Open
const STYLE_CardMain_Tool_NoBg2 = 'CardMain_Tool_NoBg2';
- 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 STYLE_CardButtonMediumL should be defined in uppercase Open
const STYLE_CardButtonMediumL = 'CardButtonMediumL';
- 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 STYLE_CardButtonSmallL should be defined in uppercase Open
const STYLE_CardButtonSmallL = 'CardButtonSmallL';
- 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 STYLE_CardButtonSmallS should be defined in uppercase Open
const STYLE_CardButtonSmallS = 'CardButtonSmallS';
- 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 "Label_Button" is not in camel caps format Open
class Label_Button extends Label
- Exclude checks