🔧
This commit is contained in:
@@ -173,7 +173,6 @@ final class CodeRenderer
|
||||
* Splits tokens into lines.
|
||||
*
|
||||
* @param array<int, array{0: string, 1: string}> $tokens
|
||||
* @param int $startLine
|
||||
* @return array<int, array<int, array{0: string, 1: non-empty-string}>>
|
||||
*/
|
||||
private function splitToLines(array $tokens, int $startLine): array
|
||||
@@ -228,8 +227,6 @@ final class CodeRenderer
|
||||
* Prepends line numbers into lines.
|
||||
*
|
||||
* @param array<int, string> $lines
|
||||
* @param int $markLine
|
||||
* @return string
|
||||
*/
|
||||
private function lineNumbers(array $lines, int $markLine): string
|
||||
{
|
||||
|
||||
@@ -122,7 +122,7 @@ final class TableRenderer
|
||||
if ($child->isName('tr')) {
|
||||
$rows = iterator_to_array($this->parseRow($child));
|
||||
if (count($rows) > 0) {
|
||||
$this->table->addRow(new TableSeparator());
|
||||
$this->table->addRow(new TableSeparator);
|
||||
$this->table->addRows($rows);
|
||||
}
|
||||
}
|
||||
@@ -203,7 +203,7 @@ final class TableRenderer
|
||||
|
||||
$border = (int) $node->getAttribute('border');
|
||||
for ($i = $border; $i--; $i > 0) {
|
||||
yield new TableSeparator();
|
||||
yield new TableSeparator;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user