| Conditions | 2 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 35 | { |
||
| 36 | $currentRegistry = $this->getManager()->getCurrentRegistry($this->checkIsCurrent($input)); |
||
| 37 | $registries = $this->getManager()->getRegistries(); |
||
| 38 | |||
| 39 | //find all registry records |
||
| 40 | $rows = array_map(function (Registry $registry) use ($currentRegistry) { |
||
| 41 | if ($currentRegistry == $registry) { |
||
| 42 | return [ |
||
| 43 | '<info>*</info>', |
||
| 44 | "<info>{$registry->getName()}</info>", |
||
| 45 | "<info>{$registry->getUrl()}</info>" |
||
| 46 | ]; |
||
| 47 | } else { |
||
| 48 | return [ |
||
| 49 | '', |
||
| 50 | $registry->getName(), |
||
| 51 | $registry->getUrl() |
||
| 52 | ]; |
||
| 53 | } |
||
| 54 | }, $registries->all()); |
||
| 55 | $this->outputResult($rows, $output); |
||
| 56 | } |
||
| 57 | |||
| 71 |