@@ -66,6 +66,8 @@ public function __construct(OutputInterface $output)
6666
6767 /**
6868 * Sets a style definition.
69+ *
70+ * @return void
6971 */
7072 public static function setStyleDefinition (string $ name , TableStyle $ style )
7173 {
@@ -310,6 +312,8 @@ public function setVertical(bool $vertical = true): static
310312 * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
311313 * | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien |
312314 * +---------------+-----------------------+------------------+
315+ *
316+ * @return void
313317 */
314318 public function render ()
315319 {
@@ -450,7 +454,7 @@ public function render()
450454 *
451455 * +-----+-----------+-------+
452456 */
453- private function renderRowSeparator (int $ type = self ::SEPARATOR_MID , string $ title = null , string $ titleFormat = null )
457+ private function renderRowSeparator (int $ type = self ::SEPARATOR_MID , string $ title = null , string $ titleFormat = null ): void
454458 {
455459 if (!$ count = $ this ->numberOfColumns ) {
456460 return ;
@@ -515,7 +519,7 @@ private function renderColumnSeparator(int $type = self::BORDER_OUTSIDE): string
515519 *
516520 * | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens |
517521 */
518- private function renderRow (array $ row , string $ cellFormat , string $ firstCellFormat = null )
522+ private function renderRow (array $ row , string $ cellFormat , string $ firstCellFormat = null ): void
519523 {
520524 $ rowContent = $ this ->renderColumnSeparator (self ::BORDER_OUTSIDE );
521525 $ columns = $ this ->getRowColumns ($ row );
@@ -588,7 +592,7 @@ private function renderCell(array $row, int $column, string $cellFormat): string
588592 /**
589593 * Calculate number of columns for this table.
590594 */
591- private function calculateNumberOfColumns (array $ rows )
595+ private function calculateNumberOfColumns (array $ rows ): void
592596 {
593597 $ columns = [0 ];
594598 foreach ($ rows as $ row ) {
@@ -789,7 +793,7 @@ private function getRowColumns(array $row): array
789793 /**
790794 * Calculates columns widths.
791795 */
792- private function calculateColumnsWidth (iterable $ groups )
796+ private function calculateColumnsWidth (iterable $ groups ): void
793797 {
794798 for ($ column = 0 ; $ column < $ this ->numberOfColumns ; ++$ column ) {
795799 $ lengths = [];
@@ -843,7 +847,7 @@ private function getCellWidth(array $row, int $column): int
843847 /**
844848 * Called after rendering to cleanup cache data.
845849 */
846- private function cleanup ()
850+ private function cleanup (): void
847851 {
848852 $ this ->effectiveColumnWidths = [];
849853 unset($ this ->numberOfColumns );
0 commit comments