loadModel('Users'); $results = $this->fetchTable()->syncWithKeycloak(); $tableData = [ ['Modification type', 'Count', 'Affected users'] ]; foreach ($results as $k => $v) { $tableData[] = [$k, '' . count($v) . '', '' . implode(', ', $v) . '']; } $io->out(__('Sync done. See the results below.')); $io->helper('Table')->output($tableData); } else { $io->error(__('Keycloak is not enabled.')); } } }