| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 29 | { |
||
| 30 | $alias = $input->getArgument('alias'); |
||
| 31 | |||
| 32 | if (!$this->helper->hasAlias($alias)) { |
||
| 33 | $output->writeln(sprintf( |
||
| 34 | '<success>Alias `%s` does not exist.</success>', |
||
| 35 | $alias |
||
| 36 | )); |
||
| 37 | |||
| 38 | return 1; |
||
| 39 | } |
||
| 40 | |||
| 41 | $package = $this->helper->getAlias($alias); |
||
| 42 | |||
| 43 | $output->writeln(sprintf('Alias `%s` is set to: <comment>%s</comment>', $alias, $package)); |
||
| 44 | |||
| 45 | return 0; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |