src/Model/Validator/ExtractedMethodValidator.php
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private GeneratorConfiguration $generatorConfiguration,
PropertyInterface $property,
string $template,
array $templateValues,
string $exceptionClass,
Avoid unused parameters such as '$validator'. Open
Open
private ExtractedMethodValidator $validator,
- 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
Avoid unused parameters such as '$generatorConfiguration'. Open
Open
private GeneratorConfiguration $generatorConfiguration,
- 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
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private string $extractedMethodName;
- Exclude checks
Arguments with default values must be at the end of the argument list Open
Open
array $exceptionParams = [],
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
private GeneratorConfiguration $generatorConfiguration,
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private GeneratorConfiguration $generatorConfiguration,
- Exclude checks
Closing brace must be on a line by itself Open
Open
) {}
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 16 Open
Open
private ExtractedMethodValidator $validator,
- Exclude checks