Conditions | 4 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
34 | { |
||
35 | $table = new Table($output); |
||
36 | $table->setHeaders(['id', 'auto-detectable', 'validation']); |
||
37 | |||
38 | foreach ($this->importerRepository->getIds() as $importerId) { |
||
39 | $importer = $this->importerRepository->get($importerId); |
||
40 | |||
41 | $table->addRow([ |
||
42 | $importerId, |
||
43 | $this->importerRepository->hasPrecondition($importerId) ? 'Yes' : 'No', |
||
44 | ($importer->validation() instanceof DummyValidation) ? 'No' : 'Yes', |
||
45 | ]); |
||
46 | } |
||
47 | |||
48 | $table->render(); |
||
49 | } |
||
50 | } |
||
51 |