NovikovViktor/RequestLimitBundle

View on GitHub
Command/MySQLProviderSetupCommand.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$output'.
Open

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phpmd

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

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phpmd

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

class MySQLProviderSetupCommand extends ContainerAwareCommand
Severity: Critical
Found in Command/MySQLProviderSetupCommand.php by phan

Parameter $input has undeclared type \Symfony\Component\Console\Input\InputInterface
Open

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phan

@throws type of execute has undeclared type \Doctrine\DBAL\DBALException
Open

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phan

Possibly zero references to use statement for classlike/namespace Connection (\Doctrine\DBAL\Connection)
Open

use Doctrine\DBAL\Connection;
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phan

Parameter $output has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phan

Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::getContainer
Open

        $connection = $this->getContainer()->get('doctrine.orm.default_entity_manager')->getConnection();
Severity: Critical
Found in Command/MySQLProviderSetupCommand.php by phan

Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::setName
Open

        $this
Severity: Critical
Found in Command/MySQLProviderSetupCommand.php by phan

There are no issues that match your filters.

Category
Status