Skip to content

Commit

Permalink
fix spelling mistakes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed May 18, 2022
1 parent 5dbbde9 commit b92f610
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class kbATeam\MarkdownTable\Column
*
* Manages column attributes of a markdown table.
* Manages column attributes of a Markdown table.
*
* @category library
* @package kbATeam\MarkdownTable
Expand Down
12 changes: 6 additions & 6 deletions src/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class kbATeam\MarkdownTable\Table
*
* Generates a markdown table for a fixed number of columns from an array of rows.
* Generates a Markdown table for a fixed number of columns from an array of rows.
*
* @category library
* @package kbATeam\MarkdownTable
Expand Down Expand Up @@ -122,8 +122,8 @@ private function resetColumnLengths()
}

/**
* Generate a markdown table from the defined columns and their rows.
* @param array $rows Rows of the markdown table.
* Generate a Markdown table from the defined columns and their rows.
* @param array $rows Rows of the Markdown table.
* @return \Generator generates a string for each row including the headers.
* @throws \RuntimeException in case no columns are defined, or in case the rows
* parameter is not an array of arrays.
Expand All @@ -137,7 +137,7 @@ public function generate(array $rows)
$this->resetColumnLengths();

/**
* Process each row, clean each cells string and determine the maximum
* Process each row, clean each cell's string and determine the maximum
* length of each cell based on the cleaned string. Missing cells in a row
* get replaced by an empty string.
*/
Expand Down Expand Up @@ -201,9 +201,9 @@ public function generate(array $rows)
}

/**
* Get a markdown table as string with line breaks.
* Get a Markdown table as string with line breaks.
* @param array $rows The rows to create a table from.
* @return string The markdown table.
* @return string The Markdown table.
* @throws \RuntimeException in case no columns are defined, or in case the rows
* parameter is not an array of arrays.
*/
Expand Down

0 comments on commit b92f610

Please sign in to comment.