Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
19 | protected function configure() |
||
20 | { |
||
21 | $this |
||
22 | // the name of the command (the part after "bin/console") |
||
23 | ->setName('ticket:export-playlist') |
||
24 | // the short description shown while running "php bin/console list" |
||
25 | ->setDescription('Export playlist') |
||
26 | // the full command description shown when running the command with |
||
27 | // the "--help" option |
||
28 | ->setHelp("Export playlist to CSV file") |
||
29 | ->addArgument('file', InputArgument::REQUIRED, 'Name of the CSV file.'); |
||
30 | } |
||
31 | |||
40 |
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.