Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
32 | { |
||
33 | $name = $input->getArgument('name'); |
||
34 | if ($name) { |
||
35 | $text = 'Hello ' . $name; |
||
|
|||
36 | } else { |
||
37 | $text = 'Hello'; |
||
38 | } |
||
39 | |||
40 | if ($input->getOption('yell')) { |
||
41 | $text = strtoupper($text); |
||
42 | } |
||
43 | |||
44 | $output->writeln($text); |
||
45 | } |
||
46 | } |