Added current page message in list short urls CLI command

This commit is contained in:
Alejandro Celaya
2018-12-08 12:16:39 +01:00
parent bb40d84212
commit 1983fc9b67
3 changed files with 12 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ final class ShlinkTable
return new self(new Table($output));
}
public function render(array $headers, array $rows, ?string $headerTitle = null, ?string $footerTitle = null): void
public function render(array $headers, array $rows, ?string $footerTitle = null, ?string $headerTitle = null): void
{
$style = Table::getStyleDefinition(self::DEFAULT_STYLE_NAME);
$style->setFooterTitleFormat(self::TABLE_TITLE_STYLE)
@@ -34,8 +34,8 @@ final class ShlinkTable
$table->setStyle($style)
->setHeaders($headers)
->setRows($rows)
->setHeaderTitle($headerTitle)
->setFooterTitle($footerTitle)
->setHeaderTitle($headerTitle)
->render();
}
}