This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
29
{
30
/**
31
* {@inheritDoc}
32
*/
33
protected function configure()
34
{
35
parent::configure();
36
37
$this
38
->setName('doctrine:query:sql')
39
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
40
->setHelp(<<<EOT
41
The <info>doctrine:query:sql</info> command executes the given SQL query and
42
outputs the results:
43
44
<info>php app/console doctrine:query:sql "SELECT * from user"</info>
45
EOT
46
);
47
}
48
49
/**
50
* {@inheritDoc}
51
*/
52
protected function execute(InputInterface $input, OutputInterface $output)
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.