src/Leevel/Kernel/Utils/Doc.php
protected function formatTitle(string $title, bool $isHeader = false): string
    {
        if ($title) {
            $title = ($isHeader ? '#' : '##')." {$title}".PHP_EOL;
        }

        return $title;
    }
protected function formatTitle(string $title, bool $isHeader = false): string
    {
        if ($title) {
            $title = ($isHeader ? '#' : '##')." {$title}".PHP_EOL;
        }

        return $title;
    }
格式化标题.

@param string $title
@param bool   $isHeader

@return string