Skip to content

Commit c497386

Browse files
committed
Add parameter hints to MarkdownBootstrapFix()
1 parent 2f37e17 commit c497386

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Templates/Includes/MarkdownBootstrapFix.inc.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33

44
/**
55
* Adds CSS classes to Markdown output
6+
*
7+
* @param string $v The HTML contents of Markdown-rendered output.
8+
* @param bool $sm Whether to use a small table.
9+
* @param bool $lpm Whether to set bottom-margin to zero (0) for the last paragraph (\<p\>) element.
10+
* @return string The replaced HTML contents of Markdown-rendered output.
611
*/
7-
function MarkdownBootstrapFix(string $v, bool $sm = false, bool $lpm = false)
12+
function MarkdownBootstrapFix(string $v, bool $sm = false, bool $lpm = false): string
813
{
914
// Tables
1015
$v = str_replace('<table>', '<table class="table table-hover table-markdown ' . ($sm ? 'table-sm ' : '') . 'table-striped">', $v);

0 commit comments

Comments
 (0)