Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | protected function configure() |
||
24 | { |
||
25 | $this->setName('accounts'); |
||
26 | $this->setDescription('Retrieve web accounts associated with an URL'); |
||
27 | $this->addArgument('url', InputArgument::REQUIRED, 'The URL you want to retrieve associated accounts for'); |
||
28 | $this->addOption('token', null, InputOption::VALUE_REQUIRED, 'Your authentication token'); |
||
29 | } |
||
30 | |||
42 |
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.