src/Bridge/Doctrine/BlockingProxyFactoryOverridingManagerConfigurator.php
Missing class import via use statement (line '42', column '32'). Open
Open
$emReflClass = new \ReflectionClass(EntityManager::class);
- Read upRead up
- 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
Missing class import via use statement (line '25', column '23'). Open
Open
throw new \UnexpectedValueException(sprintf('%s needed, got %s.', EntityManager::class, $entityManager::class));
- Read upRead up
- 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
Avoid excessively long class names like BlockingProxyFactoryOverridingManagerConfigurator. Keep class name length under 40. Open
Open
final class BlockingProxyFactoryOverridingManagerConfigurator
{
private static ?\ReflectionProperty $emProxyFactoryPropRefl = null;
public function __construct(
- Read upRead up
- Exclude checks
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
Open
private FirstTimeOnlyMutexFactory $mutexFactory
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private ManagerConfigurator $wrapped,
- Exclude checks