Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 17 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
22 | public function configure() |
||
23 | { |
||
24 | $this |
||
25 | ->setName('emulator:response') |
||
26 | ->setDescription('Triggers Webhook with provided JSON string') |
||
27 | ->setHelp('Triggers Webhook with provided JSON string') |
||
28 | ->addArgument( |
||
29 | 'path', |
||
30 | InputArgument::REQUIRED, |
||
31 | 'Path to bot directory' |
||
32 | ) |
||
33 | ->addArgument( |
||
34 | 'json', |
||
35 | InputArgument::REQUIRED, |
||
36 | 'Json string' |
||
37 | ); |
||
38 | } |
||
39 | |||
56 |
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.