Gush\Helper\StyleHelper::detailsTable PHP Метод

detailsTable() публичный Метод

public detailsTable ( array $rows )
$rows array
    public function detailsTable(array $rows)
    {
        $rows = array_map(function ($row) {
            $row[0] = sprintf('<info>%s:</>', $row[0]);
            return $row;
        }, $rows);
        $table = new Table($this->output);
        $table->getStyle()->setPaddingChar(' ')->setHorizontalBorderChar('')->setVerticalBorderChar(' ')->setCrossingChar('')->setCellHeaderFormat('%s')->setCellRowFormat('%s')->setCellRowContentFormat('%s')->setBorderFormat('%s')->setPadType(STR_PAD_RIGHT);
        $table->setRows($rows);
        $table->render();
        $this->newLine();
    }