src/InitializerTrait.php
Missing class import via use statement (line '45', column '18'). Open
Open
if ((new \ReflectionMethod($this, 'init'))->getModifiers() & \ReflectionMethod::IS_PUBLIC) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Property name "$_initialized" should not be prefixed with an underscore to indicate visibility Open
Open
private bool $_initialized = false;
- Create a ticketCreate a ticket
- Exclude checks