Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | protected function configure() |
||
17 | { |
||
18 | $this |
||
19 | ->setName('lej-ddd:create-uuid-id') |
||
20 | ->setDescription('Creates a UUID-based identity.') |
||
21 | ->addArgument('domain', InputArgument::REQUIRED, 'The name of the domain.') |
||
22 | ->addArgument('context', InputArgument::REQUIRED, 'The name of the context.') |
||
23 | ->addArgument('name', InputArgument::REQUIRED, 'The name of the identity.'); |
||
24 | } |
||
25 | |||
47 |
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.