DebugAspectCommand::loadAspectKernel()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 4
loc 4
rs 10
c 0
b 0
f 0
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\DebugAspectCommand as BaseCommand;
17
18
/**
19
 * Class DebugAspectCommand
20
 *
21
 * Console command for querying an information about aspects
22
 *
23
 * @codeCoverageIgnore
24
 */
25 View Code Duplication
class DebugAspectCommand extends BaseCommand
0 ignored issues
show
Duplication introduced by
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...
26
{
27
    public function __construct(AspectKernel $aspectKernel)
28
    {
29
        parent::__construct(null);
30
        $this->aspectKernel = $aspectKernel;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function configure()
37
    {
38
        parent::configure();
39
        $arguments = $this->getDefinition()->getArguments();
40
        unset($arguments['loader']);
41
        $this->getDefinition()->setArguments($arguments);
42
    }
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    protected function loadAspectKernel(InputInterface $input, OutputInterface $output)
48
    {
49
        /* noop */
50
    }
51
}
52