src/JdhmApi/Form/Type/ClientType.php
Avoid unused parameters such as '$options'. Open
Open
public function buildForm(FormBuilderInterface $builder, array $options)
- 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
There must be one blank line after the last USE statement; 2 found; Open
Open
use Symfony\Component\Form\Extension\Core\Type\TextType;
- Exclude checks
The closing brace for the class must go on the next line after the body Open
Open
}
- Exclude checks