Avoid using static access to class '\FML\Script\Builder' in method 'getScriptText'. Open
$controlId = Builder::escapeText($this->control->getId());
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Class constants must be uppercase; expected TIMEOUT but found TimeOut Open
const TimeOut = "TimeOut";
- Exclude checks
Class constants must be uppercase; expected ENDMATCH but found EndMatch Open
const EndMatch = "EndMatch";
- Exclude checks
Class constants must be uppercase; expected STARTROUND but found StartRound Open
const StartRound = "StartRound";
- Exclude checks
Class constants must be uppercase; expected CAPTURE but found Capture Open
const Capture = "Capture";
- Exclude checks
Class constants must be uppercase; expected PLAYERSREMAINING but found PlayersRemaining Open
const PlayersRemaining = "PlayersRemaining";
- Exclude checks
Class constants must be uppercase; expected CUSTOM3 but found Custom3 Open
const Custom3 = "Custom3";
- Exclude checks
Class constants must be uppercase; expected DEFAULT_ but found Default_ Open
const Default_ = "Default";
- Exclude checks
Class constants must be uppercase; expected NOTICE but found Notice Open
const Notice = "Notice";
- Exclude checks
Class constants must be uppercase; expected PLAYERELIMINATED but found PlayerEliminated Open
const PlayerEliminated = "PlayerEliminated";
- Exclude checks
Class constants must be uppercase; expected STARTMATCH but found StartMatch Open
const StartMatch = "StartMatch";
- Exclude checks
Class constants must be uppercase; expected CUSTOM4 but found Custom4 Open
const Custom4 = "Custom4";
- Exclude checks
Class constants must be uppercase; expected SILENCE but found Silence Open
const Silence = "Silence";
- Exclude checks
Class constants must be uppercase; expected CHECKPOINT but found Checkpoint Open
const Checkpoint = "Checkpoint";
- Exclude checks
Class constants must be uppercase; expected COMBO but found Combo Open
const Combo = "Combo";
- Exclude checks
Class constants must be uppercase; expected PLAYERHIT but found PlayerHit Open
const PlayerHit = "PlayerHit";
- Exclude checks
Class constants must be uppercase; expected SCOREPROGRESS but found ScoreProgress Open
const ScoreProgress = "ScoreProgress";
- Exclude checks
Class constants must be uppercase; expected TIEPOINT but found TiePoint Open
const TiePoint = "TiePoint";
- Exclude checks
Class constants must be uppercase; expected VICTORYPOINT but found VictoryPoint Open
const VictoryPoint = "VictoryPoint";
- Exclude checks
Class constants must be uppercase; expected ENDROUND but found EndRound Open
const EndRound = "EndRound";
- Exclude checks
Class constants must be uppercase; expected FIRSTHIT but found FirstHit Open
const FirstHit = "FirstHit";
- Exclude checks
Class constants must be uppercase; expected PHASECHANGE but found PhaseChange Open
const PhaseChange = "PhaseChange";
- Exclude checks
Class constants must be uppercase; expected FINISH but found Finish Open
const Finish = "Finish";
- Exclude checks
Class constants must be uppercase; expected RANKCHANGE but found RankChange Open
const RankChange = "RankChange";
- Exclude checks
Class constants must be uppercase; expected CUSTOM1 but found Custom1 Open
const Custom1 = "Custom1";
- 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 RECORD but found Record Open
const Record = "Record";
- Exclude checks
Class constants must be uppercase; expected BONUS but found Bonus Open
const Bonus = "Bonus";
- Exclude checks
Class constants must be uppercase; expected CUSTOM2 but found Custom2 Open
const Custom2 = "Custom2";
- Exclude checks
Class constants must be uppercase; expected WARNING but found Warning Open
const Warning = "Warning";
- Exclude checks
Class constants must be uppercase; expected TIEBREAKPOINT but found TieBreakPoint Open
const TieBreakPoint = "TieBreakPoint";
- Exclude checks
Constant Bonus should be defined in uppercase Open
const Bonus = "Bonus";
- 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 Checkpoint should be defined in uppercase Open
const Checkpoint = "Checkpoint";
- 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 Notice should be defined in uppercase Open
const Notice = "Notice";
- 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 StartMatch should be defined in uppercase Open
const StartMatch = "StartMatch";
- 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 Custom2 should be defined in uppercase Open
const Custom2 = "Custom2";
- 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 EndMatch should be defined in uppercase Open
const EndMatch = "EndMatch";
- 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 PlayersRemaining should be defined in uppercase Open
const PlayersRemaining = "PlayersRemaining";
- 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 TiePoint should be defined in uppercase Open
const TiePoint = "TiePoint";
- 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 RankChange should be defined in uppercase Open
const RankChange = "RankChange";
- 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 ScoreProgress should be defined in uppercase Open
const ScoreProgress = "ScoreProgress";
- 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 Combo should be defined in uppercase Open
const Combo = "Combo";
- 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 Custom4 should be defined in uppercase Open
const Custom4 = "Custom4";
- 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 PlayerHit should be defined in uppercase Open
const PlayerHit = "PlayerHit";
- 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 Silence should be defined in uppercase Open
const Silence = "Silence";
- 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 Custom3 should be defined in uppercase Open
const Custom3 = "Custom3";
- 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 Default_ should be defined in uppercase Open
const 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 PlayerEliminated should be defined in uppercase Open
const PlayerEliminated = "PlayerEliminated";
- 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 StartRound should be defined in uppercase Open
const StartRound = "StartRound";
- 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 FirstHit should be defined in uppercase Open
const FirstHit = "FirstHit";
- 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 Warning should be defined in uppercase Open
const Warning = "Warning";
- 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 Capture should be defined in uppercase Open
const Capture = "Capture";
- 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 PhaseChange should be defined in uppercase Open
const PhaseChange = "PhaseChange";
- 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 TieBreakPoint should be defined in uppercase Open
const TieBreakPoint = "TieBreakPoint";
- 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 Finish should be defined in uppercase Open
const Finish = "Finish";
- 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 TimeOut should be defined in uppercase Open
const TimeOut = "TimeOut";
- 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 Custom1 should be defined in uppercase Open
const Custom1 = "Custom1";
- 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 EndRound should be defined in uppercase Open
const EndRound = "EndRound";
- 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 VictoryPoint should be defined in uppercase Open
const VictoryPoint = "VictoryPoint";
- 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 Record should be defined in uppercase Open
const Record = "Record";
- 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
Line exceeds 120 characters; contains 127 characters Open
public function __construct($soundName = null, Control $control = null, $variant = 0, $labelName = ScriptLabel::MOUSECLICK)
- Exclude checks