These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Go! AOP framework |
||
| 4 | * |
||
| 5 | * @copyright Copyright 2015, Lisachenko Alexander <[email protected]> |
||
| 6 | * |
||
| 7 | * This source file is subject to the license that is bundled |
||
| 8 | * with this source code in the file LICENSE. |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Go\Symfony\GoAopBundle\Command; |
||
| 12 | |||
| 13 | use Go\Core\AspectKernel; |
||
| 14 | use Symfony\Component\Console\Input\InputInterface; |
||
| 15 | use Symfony\Component\Console\Output\OutputInterface; |
||
| 16 | use Go\Console\Command\DebugAdvisorCommand as BaseCommand; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Console command to debug an advisors |
||
| 20 | * |
||
| 21 | * @codeCoverageIgnore |
||
| 22 | */ |
||
| 23 | View Code Duplication | class DebugAdvisorCommand extends BaseCommand |
|
|
0 ignored issues
–
show
|
|||
| 24 | { |
||
| 25 | public function __construct(AspectKernel $aspectKernel) |
||
| 26 | { |
||
| 27 | parent::__construct(null); |
||
| 28 | $this->aspectKernel = $aspectKernel; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | protected function configure() |
||
| 35 | { |
||
| 36 | parent::configure(); |
||
| 37 | $arguments = $this->getDefinition()->getArguments(); |
||
| 38 | unset($arguments['loader']); |
||
| 39 | $this->getDefinition()->setArguments($arguments); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | protected function loadAspectKernel(InputInterface $input, OutputInterface $output) |
||
| 46 | { |
||
| 47 | /* noop */ |
||
| 48 | } |
||
| 49 | } |
||
| 50 |
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.