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