/** * @param DisplayPlugin[] $row */ private function printRow($row) { if ($this->small) { $baseMask = '%4.4s #COL_START#%-25.25s#COL_END#'; $spacer = ' '; } else { $baseMask = '%4.4s #COL_START#%-30.30s#COL_END#'; $spacer = ' '; } $columns = array(); foreach ($row as $plugin) { $mask = $this->getMaskForPlugin($plugin, $baseMask); $columns[] = sprintf($mask, $plugin->index, $this->formatPlugin($plugin)); } $this->ioService->write(implode($columns, $spacer)); $this->ioService->writeln(""); }