src/Hodor/Command/TestGenerateConfigCommand.php
Method configure
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function configure()
{
$this
->setName('test:generate-config')
->setDescription('Generate a config file for tests')
- Create a ticketCreate a ticket
Avoid unused parameters such as '$output'. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Read upRead up
- Create a ticketCreate a ticket
- 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
}
}