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 412.
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_Icons128x128_Blink is not named in CamelCase. Open
class Quad_Icons128x128_Blink 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_CREDITS but found SUBSTYLE_Credits Open
const SUBSTYLE_Credits = 'Credits';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_FOREVER but found SUBSTYLE_Forever Open
const SUBSTYLE_Forever = 'Forever';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_GHOSTEDITOR but found SUBSTYLE_GhostEditor Open
const SUBSTYLE_GhostEditor = 'GhostEditor';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PAINT but found SUBSTYLE_Paint Open
const SUBSTYLE_Paint = 'Paint';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_QUIT but found SUBSTYLE_Quit Open
const SUBSTYLE_Quit = 'Quit';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SERVERSFAVORITES but found SUBSTYLE_ServersFavorites Open
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_STATISTICS but found SUBSTYLE_Statistics Open
const SUBSTYLE_Statistics = 'Statistics';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BACKFOCUSABLE but found SUBSTYLE_BackFocusable Open
const SUBSTYLE_BackFocusable = 'BackFocusable';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_HOTSEAT but found SUBSTYLE_Hotseat Open
const SUBSTYLE_Hotseat = 'Hotseat';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_LAUNCH but found SUBSTYLE_Launch Open
const SUBSTYLE_Launch = 'Launch';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MEDIATRACKER but found SUBSTYLE_MediaTracker Open
const SUBSTYLE_MediaTracker = 'MediaTracker';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SAVE but found SUBSTYLE_Save Open
const SUBSTYLE_Save = 'Save';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_EVENT but found SUBSTYLE_Event Open
const SUBSTYLE_Event = 'Event';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_LAN but found SUBSTYLE_Lan Open
const SUBSTYLE_Lan = 'Lan';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MANIAZONES but found SUBSTYLE_ManiaZones Open
const SUBSTYLE_ManiaZones = 'ManiaZones';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MULTIPLAYER but found SUBSTYLE_Multiplayer Open
const SUBSTYLE_Multiplayer = 'Multiplayer';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SERVERSSUGGESTED but found SUBSTYLE_ServersSuggested Open
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_CHALLENGEAUTHOR but found SUBSTYLE_ChallengeAuthor Open
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_CREATE but found SUBSTYLE_Create Open
const SUBSTYLE_Create = 'Create';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SHAREBLINK but found SUBSTYLE_ShareBlink Open
const SUBSTYLE_ShareBlink = 'ShareBlink';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_VEHICLES but found SUBSTYLE_Vehicles Open
const SUBSTYLE_Vehicles = 'Vehicles';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_INPUTS but found SUBSTYLE_Inputs Open
const SUBSTYLE_Inputs = 'Inputs';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_LADDERPOINTS but found SUBSTYLE_LadderPoints Open
const SUBSTYLE_LadderPoints = 'LadderPoints';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PLAYERPAGE but found SUBSTYLE_PlayerPage Open
const SUBSTYLE_PlayerPage = 'PlayerPage';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PROFILE but found SUBSTYLE_Profile Open
const SUBSTYLE_Profile = 'Profile';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_RANKINGS but found SUBSTYLE_Rankings Open
const SUBSTYLE_Rankings = 'Rankings';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MEDALCOUNT but found SUBSTYLE_MedalCount Open
const SUBSTYLE_MedalCount = 'MedalCount';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PADLOCK but found SUBSTYLE_Padlock Open
const SUBSTYLE_Padlock = 'Padlock';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_HARD but found SUBSTYLE_Hard Open
const SUBSTYLE_Hard = 'Hard';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PUZZLE but found SUBSTYLE_Puzzle Open
const SUBSTYLE_Puzzle = 'Puzzle';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_STUNTS but found SUBSTYLE_Stunts Open
const SUBSTYLE_Stunts = 'Stunts';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_COPPERS but found SUBSTYLE_Coppers Open
const SUBSTYLE_Coppers = 'Coppers';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_DOWNLOAD but found SUBSTYLE_Download Open
const SUBSTYLE_Download = 'Download';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_EDITOR but found SUBSTYLE_Editor Open
const SUBSTYLE_Editor = 'Editor';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_OPTIONS but found SUBSTYLE_Options Open
const SUBSTYLE_Options = 'Options';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_RACE but found SUBSTYLE_Race Open
const SUBSTYLE_Race = 'Race';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SHARE but found SUBSTYLE_Share Open
const SUBSTYLE_Share = 'Share';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_UPLOAD but found SUBSTYLE_Upload Open
const SUBSTYLE_Upload = 'Upload';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BACK but found SUBSTYLE_Back Open
const SUBSTYLE_Back = 'Back';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_EASY but found SUBSTYLE_Easy Open
const SUBSTYLE_Easy = 'Easy';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_LOAD but found SUBSTYLE_Load Open
const SUBSTYLE_Load = 'Load';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_LOADTRACK but found SUBSTYLE_LoadTrack Open
const SUBSTYLE_LoadTrack = 'LoadTrack';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PLATFORM but found SUBSTYLE_Platform Open
const SUBSTYLE_Platform = 'Platform';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PROFILEVEHICLE but found SUBSTYLE_ProfileVehicle Open
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SERVERSALL but found SUBSTYLE_ServersAll Open
const SUBSTYLE_ServersAll = 'ServersAll';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_INVITE but found SUBSTYLE_Invite Open
const SUBSTYLE_Invite = 'Invite';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MEDIUM but found SUBSTYLE_Medium Open
const SUBSTYLE_Medium = 'Medium';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SOLO but found SUBSTYLE_Solo Open
const SUBSTYLE_Solo = 'Solo';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BROWSE but found SUBSTYLE_Browse Open
const SUBSTYLE_Browse = 'Browse';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_CUSTOM but found SUBSTYLE_Custom Open
const SUBSTYLE_Custom = 'Custom';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_MANIALINK but found SUBSTYLE_Manialink Open
const SUBSTYLE_Manialink = 'Manialink';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_NATIONS but found SUBSTYLE_Nations Open
const SUBSTYLE_Nations = 'Nations';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_UNITED but found SUBSTYLE_United Open
const SUBSTYLE_United = 'United';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_EXTREME but found SUBSTYLE_Extreme Open
const SUBSTYLE_Extreme = 'Extreme';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_NEWTRACK but found SUBSTYLE_NewTrack Open
const SUBSTYLE_NewTrack = 'NewTrack';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_PROFILEADVANCED but found SUBSTYLE_ProfileAdvanced Open
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_SKILLPOINTS but found SUBSTYLE_SkillPoints Open
const SUBSTYLE_SkillPoints = 'SkillPoints';
- 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_BEGINNER but found SUBSTYLE_Beginner Open
const SUBSTYLE_Beginner = 'Beginner';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_BUDDIES but found SUBSTYLE_Buddies Open
const SUBSTYLE_Buddies = 'Buddies';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_CHALLENGE but found SUBSTYLE_Challenge Open
const SUBSTYLE_Challenge = 'Challenge';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_DEFAULT but found SUBSTYLE_Default Open
const SUBSTYLE_Default = 'Default';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_REPLAY but found SUBSTYLE_Replay Open
const SUBSTYLE_Replay = 'Replay';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_ADVANCED but found SUBSTYLE_Advanced Open
const SUBSTYLE_Advanced = 'Advanced';
- Exclude checks
Class constants must be uppercase; expected SUBSTYLE_CUSTOMSTARS but found SUBSTYLE_CustomStars Open
const SUBSTYLE_CustomStars = 'CustomStars';
- Exclude checks
Constant SUBSTYLE_ProfileAdvanced should be defined in uppercase Open
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
- 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_Browse should be defined in uppercase Open
const SUBSTYLE_Browse = 'Browse';
- 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_Buddies should be defined in uppercase Open
const SUBSTYLE_Buddies = 'Buddies';
- 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_Credits should be defined in uppercase Open
const SUBSTYLE_Credits = 'Credits';
- 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_Launch should be defined in uppercase Open
const SUBSTYLE_Launch = 'Launch';
- 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_Medium should be defined in uppercase Open
const SUBSTYLE_Medium = 'Medium';
- 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_Platform should be defined in uppercase Open
const SUBSTYLE_Platform = 'Platform';
- 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_Puzzle should be defined in uppercase Open
const SUBSTYLE_Puzzle = 'Puzzle';
- 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_ShareBlink should be defined in uppercase Open
const SUBSTYLE_ShareBlink = 'ShareBlink';
- 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_ChallengeAuthor should be defined in uppercase Open
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
- 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_Multiplayer should be defined in uppercase Open
const SUBSTYLE_Multiplayer = 'Multiplayer';
- 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_ProfileVehicle should be defined in uppercase Open
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
- 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_Statistics should be defined in uppercase Open
const SUBSTYLE_Statistics = 'Statistics';
- 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_Advanced should be defined in uppercase Open
const SUBSTYLE_Advanced = 'Advanced';
- 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_Download should be defined in uppercase Open
const SUBSTYLE_Download = 'Download';
- 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_Hard should be defined in uppercase Open
const SUBSTYLE_Hard = 'Hard';
- 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_Profile should be defined in uppercase Open
const SUBSTYLE_Profile = 'Profile';
- 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_GhostEditor should be defined in uppercase Open
const SUBSTYLE_GhostEditor = 'GhostEditor';
- 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_Paint should be defined in uppercase Open
const SUBSTYLE_Paint = 'Paint';
- 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_ServersSuggested should be defined in uppercase Open
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
- 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_Custom should be defined in uppercase Open
const SUBSTYLE_Custom = 'Custom';
- 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_NewTrack should be defined in uppercase Open
const SUBSTYLE_NewTrack = 'NewTrack';
- 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_Rankings should be defined in uppercase Open
const SUBSTYLE_Rankings = 'Rankings';
- 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_Hotseat should be defined in uppercase Open
const SUBSTYLE_Hotseat = 'Hotseat';
- 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_Race should be defined in uppercase Open
const SUBSTYLE_Race = 'Race';
- 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_Solo should be defined in uppercase Open
const SUBSTYLE_Solo = 'Solo';
- 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_United should be defined in uppercase Open
const SUBSTYLE_United = 'United';
- 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_Upload should be defined in uppercase Open
const SUBSTYLE_Upload = 'Upload';
- 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_Lan should be defined in uppercase Open
const SUBSTYLE_Lan = 'Lan';
- 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_LoadTrack should be defined in uppercase Open
const SUBSTYLE_LoadTrack = 'LoadTrack';
- 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_Options should be defined in uppercase Open
const SUBSTYLE_Options = 'Options';
- 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_Padlock should be defined in uppercase Open
const SUBSTYLE_Padlock = 'Padlock';
- 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_Vehicles should be defined in uppercase Open
const SUBSTYLE_Vehicles = 'Vehicles';
- 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_BackFocusable should be defined in uppercase Open
const SUBSTYLE_BackFocusable = 'BackFocusable';
- 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_Editor should be defined in uppercase Open
const SUBSTYLE_Editor = 'Editor';
- 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_Event should be defined in uppercase Open
const SUBSTYLE_Event = 'Event';
- 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_ManiaZones should be defined in uppercase Open
const SUBSTYLE_ManiaZones = 'ManiaZones';
- 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_Replay should be defined in uppercase Open
const SUBSTYLE_Replay = 'Replay';
- 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_Share should be defined in uppercase Open
const SUBSTYLE_Share = 'Share';
- 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_Load should be defined in uppercase Open
const SUBSTYLE_Load = 'Load';
- 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_Challenge should be defined in uppercase Open
const SUBSTYLE_Challenge = 'Challenge';
- 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_Manialink should be defined in uppercase Open
const SUBSTYLE_Manialink = 'Manialink';
- 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_Create should be defined in uppercase Open
const SUBSTYLE_Create = 'Create';
- 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_LadderPoints should be defined in uppercase Open
const SUBSTYLE_LadderPoints = 'LadderPoints';
- 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_Nations should be defined in uppercase Open
const SUBSTYLE_Nations = 'Nations';
- 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_CustomStars should be defined in uppercase Open
const SUBSTYLE_CustomStars = 'CustomStars';
- 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_Default should be defined in uppercase Open
const SUBSTYLE_Default = 'Default';
- 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_Easy should be defined in uppercase Open
const SUBSTYLE_Easy = 'Easy';
- 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_Invite should be defined in uppercase Open
const SUBSTYLE_Invite = 'Invite';
- 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_PlayerPage should be defined in uppercase Open
const SUBSTYLE_PlayerPage = 'PlayerPage';
- 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_Save should be defined in uppercase Open
const SUBSTYLE_Save = 'Save';
- 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_SkillPoints should be defined in uppercase Open
const SUBSTYLE_SkillPoints = 'SkillPoints';
- 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_Quit should be defined in uppercase Open
const SUBSTYLE_Quit = '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 SUBSTYLE_ServersAll should be defined in uppercase Open
const SUBSTYLE_ServersAll = 'ServersAll';
- 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_Back should be defined in uppercase Open
const SUBSTYLE_Back = 'Back';
- 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_Coppers should be defined in uppercase Open
const SUBSTYLE_Coppers = 'Coppers';
- 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_Forever should be defined in uppercase Open
const SUBSTYLE_Forever = 'Forever';
- 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_Stunts should be defined in uppercase Open
const SUBSTYLE_Stunts = 'Stunts';
- 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_Beginner should be defined in uppercase Open
const SUBSTYLE_Beginner = 'Beginner';
- 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_Extreme should be defined in uppercase Open
const SUBSTYLE_Extreme = 'Extreme';
- 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_Inputs should be defined in uppercase Open
const SUBSTYLE_Inputs = 'Inputs';
- 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_MedalCount should be defined in uppercase Open
const SUBSTYLE_MedalCount = 'MedalCount';
- 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_MediaTracker should be defined in uppercase Open
const SUBSTYLE_MediaTracker = 'MediaTracker';
- 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_ServersFavorites should be defined in uppercase Open
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
- 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_Icons128x128_Blink" is not in camel caps format Open
class Quad_Icons128x128_Blink extends Quad
- Exclude checks