diff --git a/src/PhpDoc/FunctionDoc.php b/src/PhpDoc/FunctionDoc.php index 1bc0d5d..977db74 100644 --- a/src/PhpDoc/FunctionDoc.php +++ b/src/PhpDoc/FunctionDoc.php @@ -31,4 +31,16 @@ class FunctionDoc extends MethodDoc parent::__construct($builder, $reflectionClass); } + /** + * Format function. + * + * @return string + */ + public function format(): string + { + $formatted = parent::format(); + $formatted .= "---\n"; + $formatted .= "Generated by [danog/phpdoc](https://phpdoc.daniil.it)\n"; + return $formatted; + } } diff --git a/src/PhpDoc/MethodDoc.php b/src/PhpDoc/MethodDoc.php index 2bb4bc5..e1c87f0 100644 --- a/src/PhpDoc/MethodDoc.php +++ b/src/PhpDoc/MethodDoc.php @@ -144,8 +144,6 @@ class MethodDoc extends GenericDoc } $sig .= $this->seeAlso(); $sig .= "\n"; - $sig .= "---\n"; - $sig .= "Generated by [danog/phpdoc](https://phpdoc.daniil.it)\n"; return $sig; } }