.phan/plugins/WhitespacePlugin.php
Method afterAnalyzeFile
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function afterAnalyzeFile(
CodeBase $code_base,
Context $context,
string $file_contents,
Node $node
Constant Tab should be defined in uppercase Open
Open
public const Tab = 'PhanPluginWhitespaceTab';
- 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 CarriageReturn should be defined in uppercase Open
Open
public const CarriageReturn = 'PhanPluginWhitespaceCarriageReturn';
- 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 WhitespaceTrailing should be defined in uppercase Open
Open
public const WhitespaceTrailing = 'PhanPluginWhitespaceTrailing';
- 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
}