Command/MySQLProviderSetupCommand.php
Avoid unused parameters such as '$output'. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- 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 '$input'. Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- 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
Class extends undeclared class \Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Open
Open
class MySQLProviderSetupCommand extends ContainerAwareCommand
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
@throws type of execute
has undeclared type \Doctrine\DBAL\DBALException
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Possibly zero references to use statement for classlike/namespace Connection
(\Doctrine\DBAL\Connection)
Open
Open
use Doctrine\DBAL\Connection;
- Exclude checks
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::getContainer
Open
Open
$connection = $this->getContainer()->get('doctrine.orm.default_entity_manager')->getConnection();
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::setName
Open
Open
$this
- Exclude checks