Skip to content

Commit

Permalink
fix: Fix broken tables
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Sep 18, 2024
1 parent fa81f73 commit 2ab29e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/Compiler/Method/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ public function compile()
});

$contents = '<div class="table-methods table-responsive">';
$contents .= self::NEWLINE;
$contents .= self::PARAGRAPH;
$contents .= '| Name | Return Type | Summary/Returns |' . self::NEWLINE;
$contents .= '| --- | --- | --- |' . self::NEWLINE;

foreach ($this->methods as $method) {
$contents .= $this->compileMethod($method);
}

$contents .= self::NEWLINE;
$contents .= '</div>';
$contents .= self::PARAGRAPH;

Expand Down
3 changes: 2 additions & 1 deletion lib/Compiler/Param/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function compile()
}

$contents = '<div class="table-responsive">';
$contents .= self::NEWLINE;
$contents .= self::PARAGRAPH;
$contents .= '| Name | Type | Description |' . self::NEWLINE;
$contents .= '| --- | --- | --- |' . self::NEWLINE;

Expand Down Expand Up @@ -71,6 +71,7 @@ public function compile()
. $this->sanitizeTextForTable($description) . ' |' . self::NEWLINE;
}

$contents .= self::NEWLINE;
$contents .= '</div>';
$contents .= self::PARAGRAPH;

Expand Down
4 changes: 2 additions & 2 deletions lib/Compiler/Property/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function compile()
}

$contents .= '<div class="table-properties table-responsive">';
$contents .= self::NEWLINE;
$contents .= self::PARAGRAPH;
$contents .= '| Name | Type | Description |' . self::NEWLINE;
$contents .= '| --- | --- | --- |' . self::NEWLINE;

Expand All @@ -59,7 +59,7 @@ public function compile()
);
}

$contents .= self::NEWLINE;
$contents .= self::PARAGRAPH;
$contents .= '</div>';
$contents .= self::PARAGRAPH;

Expand Down

0 comments on commit 2ab29e3

Please sign in to comment.