Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
17 | 2 | protected function configure() |
|
18 | { |
||
19 | $this |
||
20 | 2 | ->setName('saxulum:elasticsearch:querybuilder:generator:node') |
|
21 | 2 | ->setDescription('Generate the node code of a elasticsearch json query.') |
|
22 | 2 | ->addArgument('query', InputArgument::REQUIRED, 'The json query.') |
|
23 | 2 | ->addOption('useQueryBuilderFactory', 'f', InputOption::VALUE_NONE, 'Use query builder factory') |
|
24 | ; |
||
25 | 2 | } |
|
26 | |||
43 |
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.