src/InitializerTrait.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '45', column '18').
Open

        if ((new \ReflectionMethod($this, 'init'))->getModifiers() & \ReflectionMethod::IS_PUBLIC) {
Severity: Minor
Found in src/InitializerTrait.php by phpmd

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

    private bool $_initialized = false;
Severity: Minor
Found in src/InitializerTrait.php by phpcodesniffer

There are no issues that match your filters.

Category
Status