PhaseManager does not seem to conform to the naming convention (Utils?$).
This check examines a number of code elements and verifies that they conform
to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties,
methods, parameters, interfaces, classes, exceptions and special methods.
Loading history...
15
{
16
/** @var int */
17
public const MAX_PHASE = 3;
18
19
/** @var int $phase */
20
private static $phase = 1;
21
22
/**
23
* @param int $phase
24
*/
25
public static function setPhase(int $phase): void
26
{
27
self::$phase = $phase;
28
}
29
30
/**
31
* @throws \ReflectionException
32
*/
33
public static function addPhase(): void
34
{
35
$event = new PhaseUpdateEvent(self::getPhase() + 1);
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.