Conditions | 3 |
Paths | 4 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | protected function execute(InputInterface $input, OutputInterface $output) |
||
38 | { |
||
39 | $name = $input->getArgument('name'); |
||
40 | if ($name) { |
||
41 | $text = 'Hello '.$name; |
||
42 | } else { |
||
43 | $text = 'Hello'; |
||
44 | } |
||
45 | |||
46 | if ($input->getOption('yell')) { |
||
47 | $text = strtoupper($text); |
||
48 | } |
||
49 | |||
50 | $output->writeln($text); |
||
51 | |||
52 | // Should echo #logs unless it's been changed |
||
53 | $output->writeln($this->config['slack_channel']); |
||
54 | } |
||
55 | } |
||
56 |