Similar blocks of code found in 2 locations. Consider refactoring. Open
<?php
namespace FML\Controls\Quads;
use FML\Controls\Quad;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 442.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
The class Quad_Bgs1 is not named in CamelCase. Open
class Quad_Bgs1 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_BGCARDPLAYER but found SUBSTYLE_BgCardPlayer Open
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDSYSTEM but found SUBSTYLE_BgCardSystem Open
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLESHADOW but found SUBSTYLE_BgTitleShadow Open
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGLISTLINE but found SUBSTYLE_BgListLine Open
const SUBSTYLE_BgListLine = 'BgListLine';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLEPAGE but found SUBSTYLE_BgTitlePage Open
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ARROWDOWN but found SUBSTYLE_ArrowDown Open
const SUBSTYLE_ArrowDown = 'ArrowDown';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDONLINE but found SUBSTYLE_BgCardOnline Open
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDZONE but found SUBSTYLE_BgCardZone Open
const SUBSTYLE_BgCardZone = 'BgCardZone';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGICONBORDER but found SUBSTYLE_BgIconBorder Open
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGLIST but found SUBSTYLE_BgList Open
const SUBSTYLE_BgList = 'BgList';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGSYSTEMBAR but found SUBSTYLE_BgSystemBar Open
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3_3 but found SUBSTYLE_BgTitle3_3 Open
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONOFF but found SUBSTYLE_BgButtonOff Open
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3_5 but found SUBSTYLE_BgTitle3_5 Open
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGWINDOW2 but found SUBSTYLE_BgWindow2 Open
const SUBSTYLE_BgWindow2 = 'BgWindow2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSMALL but found SUBSTYLE_BgButtonSmall Open
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARD1 but found SUBSTYLE_BgCard1 Open
const SUBSTYLE_BgCard1 = 'BgCard1';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDLIST but found SUBSTYLE_BgCardList Open
const SUBSTYLE_BgCardList = 'BgCardList';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONGLOW but found SUBSTYLE_BgButtonGlow Open
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCOLORCONTOUR but found SUBSTYLE_BgColorContour Open
const SUBSTYLE_BgColorContour = 'BgColorContour';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGLOW2 but found SUBSTYLE_BgGlow2 Open
const SUBSTYLE_BgGlow2 = 'BgGlow2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGPROGRESSBAR but found SUBSTYLE_BgProgressBar Open
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGWINDOW1 but found SUBSTYLE_BgWindow1 Open
const SUBSTYLE_BgWindow1 = 'BgWindow1';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ARROWUP but found SUBSTYLE_ArrowUp Open
const SUBSTYLE_ArrowUp = 'ArrowUp';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARD2 but found SUBSTYLE_BgCard2 Open
const SUBSTYLE_BgCard2 = 'BgCard2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGRADLEFT but found SUBSTYLE_BgGradLeft Open
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGRADRIGHT but found SUBSTYLE_BgGradRight Open
const SUBSTYLE_BgGradRight = 'BgGradRight';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3_1 but found SUBSTYLE_BgTitle3_1 Open
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDBUDDY but found SUBSTYLE_BgCardBuddy Open
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGEMPTY but found SUBSTYLE_BgEmpty Open
const SUBSTYLE_BgEmpty = 'BgEmpty';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGMETALBAR but found SUBSTYLE_BgMetalBar Open
const SUBSTYLE_BgMetalBar = 'BgMetalBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGPAGER but found SUBSTYLE_BgPager Open
const SUBSTYLE_BgPager = 'BgPager';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE but found SUBSTYLE_BgTitle Open
const SUBSTYLE_BgTitle = 'BgTitle';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONBIG but found SUBSTYLE_BgButtonBig Open
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
- 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 SUBSTYLE_BGBUTTONGRAYED but found SUBSTYLE_BgButtonGrayed Open
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDCHALLENGE but found SUBSTYLE_BgCardChallenge Open
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDPROPERTY but found SUBSTYLE_BgCardProperty Open
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGHEALTHBAR but found SUBSTYLE_BgHealthBar Open
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3_2 but found SUBSTYLE_BgTitle3_2 Open
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SHADOW but found SUBSTYLE_Shadow Open
const SUBSTYLE_Shadow = 'Shadow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTON but found SUBSTYLE_BgButton Open
const SUBSTYLE_BgButton = 'BgButton';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE2 but found SUBSTYLE_BgTitle2 Open
const SUBSTYLE_BgTitle2 = 'BgTitle2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3_4 but found SUBSTYLE_BgTitle3_4 Open
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGRADV but found SUBSTYLE_BgGradV Open
const SUBSTYLE_BgGradV = 'BgGradV';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLE3 but found SUBSTYLE_BgTitle3 Open
const SUBSTYLE_BgTitle3 = 'BgTitle3';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ARROWLEFT but found SUBSTYLE_ArrowLeft Open
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGBUTTONSHADOW but found SUBSTYLE_BgButtonShadow Open
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARD but found SUBSTYLE_BgCard Open
const SUBSTYLE_BgCard = 'BgCard';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDINVENTORYITEM but found SUBSTYLE_BgCardInventoryItem Open
const SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGRADBOTTOM but found SUBSTYLE_BgGradBottom Open
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGSLIDER but found SUBSTYLE_BgSlider Open
const SUBSTYLE_BgSlider = 'BgSlider';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_GLOW but found SUBSTYLE_Glow Open
const SUBSTYLE_Glow = 'Glow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ARROWRIGHT but found SUBSTYLE_ArrowRight Open
const SUBSTYLE_ArrowRight = 'ArrowRight';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARD3 but found SUBSTYLE_BgCard3 Open
const SUBSTYLE_BgCard3 = 'BgCard3';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGCARDFOLDER but found SUBSTYLE_BgCardFolder Open
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGDIALOGBLUR but found SUBSTYLE_BgDialogBlur Open
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGGRADTOP but found SUBSTYLE_BgGradTop Open
const SUBSTYLE_BgGradTop = 'BgGradTop';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGSHADOW but found SUBSTYLE_BgShadow Open
const SUBSTYLE_BgShadow = 'BgShadow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_NAVBUTTONBLINK but found SUBSTYLE_NavButtonBlink Open
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGTITLEGLOW but found SUBSTYLE_BgTitleGlow Open
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_NAVBUTTONQUIT but found SUBSTYLE_NavButtonQuit Open
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PROGRESSBAR but found SUBSTYLE_ProgressBar Open
const SUBSTYLE_ProgressBar = 'ProgressBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_NAVBUTTON but found SUBSTYLE_NavButton Open
const SUBSTYLE_NavButton = 'NavButton';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGWINDOW4 but found SUBSTYLE_BgWindow4 Open
const SUBSTYLE_BgWindow4 = 'BgWindow4';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PROGRESSBARSMALL but found SUBSTYLE_ProgressBarSmall Open
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BGWINDOW3 but found SUBSTYLE_BgWindow3 Open
const SUBSTYLE_BgWindow3 = 'BgWindow3';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ENERGYBAR but found SUBSTYLE_EnergyBar Open
const SUBSTYLE_EnergyBar = 'EnergyBar';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ENERGYTEAM2 but found SUBSTYLE_EnergyTeam2 Open
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_HEALTHBAR but found SUBSTYLE_HealthBar Open
const SUBSTYLE_HealthBar = 'HealthBar';
- Exclude checks
Constant SUBSTYLE_BgGradRight should be defined in uppercase Open
const SUBSTYLE_BgGradRight = 'BgGradRight';
- 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_BgCardZone should be defined in uppercase Open
const SUBSTYLE_BgCardZone = 'BgCardZone';
- 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_BgGradLeft should be defined in uppercase Open
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
- 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_BgCardBuddy should be defined in uppercase Open
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
- 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_BgMetalBar should be defined in uppercase Open
const SUBSTYLE_BgMetalBar = 'BgMetalBar';
- 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_BgCardOnline should be defined in uppercase Open
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
- 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_BgShadow should be defined in uppercase Open
const SUBSTYLE_BgShadow = 'BgShadow';
- 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_BgTitle3_4 should be defined in uppercase Open
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
- 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_Glow should be defined in uppercase Open
const SUBSTYLE_Glow = 'Glow';
- 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_BgWindow4 should be defined in uppercase Open
const SUBSTYLE_BgWindow4 = 'BgWindow4';
- 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_BgButtonOff should be defined in uppercase Open
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
- 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_BgButtonShadow should be defined in uppercase Open
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
- 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_ArrowLeft should be defined in uppercase Open
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
- 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_BgEmpty should be defined in uppercase Open
const SUBSTYLE_BgEmpty = 'BgEmpty';
- 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_BgGradTop should be defined in uppercase Open
const SUBSTYLE_BgGradTop = 'BgGradTop';
- 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_BgCard2 should be defined in uppercase Open
const SUBSTYLE_BgCard2 = 'BgCard2';
- 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_BgList should be defined in uppercase Open
const SUBSTYLE_BgList = 'BgList';
- 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_BgTitle3_1 should be defined in uppercase Open
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
- 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_BgSystemBar should be defined in uppercase Open
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
- 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_BgCard3 should be defined in uppercase Open
const SUBSTYLE_BgCard3 = 'BgCard3';
- 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_BgTitleShadow should be defined in uppercase Open
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
- 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_BgColorContour should be defined in uppercase Open
const SUBSTYLE_BgColorContour = 'BgColorContour';
- 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_BgTitle3_2 should be defined in uppercase Open
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
- 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_BgWindow3 should be defined in uppercase Open
const SUBSTYLE_BgWindow3 = 'BgWindow3';
- 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_BgButtonGlow should be defined in uppercase Open
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
- 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
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_BgTitle2 should be defined in uppercase Open
const SUBSTYLE_BgTitle2 = 'BgTitle2';
- 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_BgWindow2 should be defined in uppercase Open
const SUBSTYLE_BgWindow2 = 'BgWindow2';
- 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_BgCardChallenge should be defined in uppercase Open
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
- 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_BgSlider should be defined in uppercase Open
const SUBSTYLE_BgSlider = 'BgSlider';
- 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
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
Constant SUBSTYLE_ArrowDown should be defined in uppercase Open
const SUBSTYLE_ArrowDown = 'ArrowDown';
- 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_BgButtonGrayed should be defined in uppercase Open
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
- 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_BgCardList should be defined in uppercase Open
const SUBSTYLE_BgCardList = 'BgCardList';
- 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_BgHealthBar should be defined in uppercase Open
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
- 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_EnergyTeam2 should be defined in uppercase Open
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
- 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_NavButtonBlink should be defined in uppercase Open
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
- 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_BgCard1 should be defined in uppercase Open
const SUBSTYLE_BgCard1 = 'BgCard1';
- 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_BgTitle should be defined in uppercase Open
const SUBSTYLE_BgTitle = 'BgTitle';
- 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_ArrowUp should be defined in uppercase Open
const SUBSTYLE_ArrowUp = 'ArrowUp';
- 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_BgDialogBlur should be defined in uppercase Open
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
- 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_BgGradV should be defined in uppercase Open
const SUBSTYLE_BgGradV = 'BgGradV';
- 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_BgListLine should be defined in uppercase Open
const SUBSTYLE_BgListLine = 'BgListLine';
- 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_BgPager should be defined in uppercase Open
const SUBSTYLE_BgPager = 'BgPager';
- 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_BgTitle3_3 should be defined in uppercase Open
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
- 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_BgWindow1 should be defined in uppercase Open
const SUBSTYLE_BgWindow1 = 'BgWindow1';
- 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_Shadow should be defined in uppercase Open
const SUBSTYLE_Shadow = 'Shadow';
- 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_BgButton should be defined in uppercase Open
const SUBSTYLE_BgButton = 'BgButton';
- 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_BgCard should be defined in uppercase Open
const SUBSTYLE_BgCard = 'BgCard';
- 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_BgCardInventoryItem should be defined in uppercase Open
const SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
- 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_NavButtonQuit should be defined in uppercase Open
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
- 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_ProgressBar should be defined in uppercase Open
const SUBSTYLE_ProgressBar = 'ProgressBar';
- 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_BgCardFolder should be defined in uppercase Open
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
- 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_BgTitleGlow should be defined in uppercase Open
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
- 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_BgCardPlayer should be defined in uppercase Open
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
- 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_HealthBar should be defined in uppercase Open
const SUBSTYLE_HealthBar = 'HealthBar';
- 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_BgCardSystem should be defined in uppercase Open
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
- 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_BgGlow2 should be defined in uppercase Open
const SUBSTYLE_BgGlow2 = 'BgGlow2';
- 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_BgProgressBar should be defined in uppercase Open
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
- 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_ArrowRight should be defined in uppercase Open
const SUBSTYLE_ArrowRight = 'ArrowRight';
- 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_BgCardProperty should be defined in uppercase Open
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
- 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_BgGradBottom should be defined in uppercase Open
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
- 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_BgIconBorder should be defined in uppercase Open
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
- 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_NavButton should be defined in uppercase Open
const SUBSTYLE_NavButton = 'NavButton';
- 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_BgButtonBig should be defined in uppercase Open
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
- 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_BgTitle3 should be defined in uppercase Open
const SUBSTYLE_BgTitle3 = 'BgTitle3';
- 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_BgTitle3_5 should be defined in uppercase Open
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
- 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_BgTitlePage should be defined in uppercase Open
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
- 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_ProgressBarSmall should be defined in uppercase Open
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
- 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_Bgs1" is not in camel caps format Open
class Quad_Bgs1 extends Quad
- Exclude checks