Conditions | 3 |
Paths | 4 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | protected function execute(InputInterface $input, OutputInterface $output) |
||
55 | { |
||
56 | $rows = []; |
||
57 | $catalog = new Catalog; |
||
58 | $catalog->setRequest($this->request); |
||
59 | $categoryCount = $catalog->categoryCount(); |
||
60 | $rows[] = [ |
||
61 | 'Categories', |
||
62 | $categoryCount !== false ? $categoryCount : 'Unknown' |
||
63 | ]; |
||
64 | $productCount = $catalog->productCount(); |
||
65 | $rows[] = [ |
||
66 | 'Products', |
||
67 | $productCount !== false ? $productCount : 'Unknown' |
||
68 | ]; |
||
69 | $this->out('Catalog Information', [[ |
||
70 | 'type' => 'table', |
||
71 | 'data' => [ |
||
72 | ['Type', 'Count'], |
||
73 | $rows |
||
74 | ] |
||
75 | ]]); |
||
76 | } |
||
77 | } |
||
78 |