src/CoreBundle/Hook/HookEvent.php
Avoid unused parameters such as '$entityManager'. Open
Open
public static function create(EntityManager $entityManager)
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Abstract class name is not prefixed with "Abstract" Open
Open
abstract class HookEvent implements HookEventInterface
- Exclude checks
Missing function doc comment Open
Open
public function getEntityManager(): EntityManager
- Exclude checks