Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | protected function configure() |
||
13 | { |
||
14 | $this |
||
15 | ->setName('sumocoders:multiuser:create') |
||
16 | ->setDescription('Create a user entity') |
||
17 | ->addArgument( |
||
18 | 'username', |
||
19 | InputArgument::REQUIRED, |
||
20 | 'The username of the user' |
||
21 | ) |
||
22 | ->addArgument( |
||
23 | 'password', |
||
24 | InputArgument::REQUIRED, |
||
25 | 'The password for the user' |
||
26 | ) |
||
27 | ->addArgument( |
||
28 | 'displayName', |
||
29 | InputArgument::REQUIRED, |
||
30 | 'The display name for the user' |
||
31 | ) |
||
32 | ; |
||
33 | } |
||
34 | |||
52 |
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.