| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.4326 |
| Changes | 3 | ||
| Bugs | 2 | Features | 3 |
| 1 | <?php |
||
| 43 | 12 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 44 | { |
||
| 45 | 12 | $handler = $input->getArgument('handler'); |
|
| 46 | 12 | $workload = $input->getArgument('workload'); |
|
| 47 | |||
| 48 | 12 | if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { |
|
| 49 | $output->writeln(sprintf('Run command "%s" with workload "%s"', $handler, $workload)); |
||
| 50 | } |
||
| 51 | |||
| 52 | 12 | $result = $this->registry->run($handler, $workload); |
|
| 53 | |||
| 54 | 12 | if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { |
|
| 55 | $output->writeln(sprintf('Result: %s', json_encode($result))); |
||
| 56 | } |
||
| 57 | 12 | } |
|
| 58 | } |
||
| 59 |