| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 34 | { |
||
| 35 | /** @var Syncer $syncer */ |
||
| 36 | 2 | $syncer = $this->getContainer()->get('velikonja_labby.service.syncer'); |
|
| 37 | 2 | $stopwatch = new Stopwatch(); |
|
| 38 | |||
| 39 | 2 | $stopwatch->start('sync_db'); |
|
| 40 | 2 | $syncer->syncDb($output); |
|
| 41 | 2 | $event = $stopwatch->stop('sync_db'); |
|
| 42 | |||
| 43 | 2 | $output->writeln(''); |
|
| 44 | 2 | $output->writeln( |
|
| 45 | sprintf( |
||
| 46 | 2 | '<info>Finished in %.2f seconds!</info>', |
|
| 47 | 2 | $event->getDuration() / 1000 |
|
| 48 | ) |
||
| 49 | ); |
||
| 50 | 2 | } |
|
| 51 | } |
||
| 52 |