pixelfederation/swoole-bundle

View on GitHub
src/Bridge/Doctrine/BlockingProxyFactoryOverridingManagerConfigurator.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '42', column '32').
Open

            $emReflClass = new \ReflectionClass(EntityManager::class);

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

Missing class import via use statement (line '25', column '23').
Open

            throw new \UnexpectedValueException(sprintf('%s needed, got %s.', EntityManager::class, $entityManager::class));

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

Avoid excessively long class names like BlockingProxyFactoryOverridingManagerConfigurator. Keep class name length under 40.
Open

final class BlockingProxyFactoryOverridingManagerConfigurator
{
    private static ?\ReflectionProperty $emProxyFactoryPropRefl = null;

    public function __construct(

LongClassName

Since: 2.9

Detects when classes or interfaces are declared with excessively long names.

Example

class ATooLongClassNameThatHintsAtADesignProblem {

}

interface ATooLongInterfaceNameThatHintsAtADesignProblem {

}

Source https://phpmd.org/rules/naming.html#longclassname

Line indented incorrectly; expected 4 spaces, found 8
Open

        private FirstTimeOnlyMutexFactory $mutexFactory

Line indented incorrectly; expected 4 spaces, found 8
Open

        private ManagerConfigurator $wrapped,

There are no issues that match your filters.

Category
Status