Skip to content

Commit

Permalink
fix: Fix whitespace for table wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Sep 18, 2024
1 parent 533b163 commit 03f93aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/Compiler/Method/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,14 @@ public function compile()
});

$contents = '<div class="table-methods table-responsive">';
$contents .= self::PARAGRAPH;

$contents .= self::NEWLINE;
$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
4 changes: 3 additions & 1 deletion lib/Compiler/Param/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function compile()
if (!is_array($this->params) || empty($this->params)) {
return $contents;
}

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

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

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

return $contents;
}
Expand Down
3 changes: 1 addition & 2 deletions lib/Compiler/Property/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public function compile()
}

$contents .= '<div class="table-properties table-responsive">';
$contents .= self::PARAGRAPH;

$contents .= self::NEWLINE;
$contents .= '| Name | Type | Description |' . self::NEWLINE;
$contents .= '| --- | --- | --- |' . self::NEWLINE;

Expand Down

0 comments on commit 03f93aa

Please sign in to comment.