diff --git a/src/PhpDoc/ClassDoc.php b/src/PhpDoc/ClassDoc.php index d010e73..8addc9a 100644 --- a/src/PhpDoc/ClassDoc.php +++ b/src/PhpDoc/ClassDoc.php @@ -143,8 +143,11 @@ class ClassDoc extends GenericDoc $init .= "## Properties\n"; foreach ($this->properties as $name => [$type, $description]) { $init .= "* `\$$name`: `$type` $description"; + $init .= "\n"; } } + $init .= "---\n"; + $init .= "Generated by [danog/phpdoc](https://phpdoc.daniil.it)\n"; return $init; } } diff --git a/src/PhpDoc/GenericDoc.php b/src/PhpDoc/GenericDoc.php index 05e7dc0..d6861b6 100644 --- a/src/PhpDoc/GenericDoc.php +++ b/src/PhpDoc/GenericDoc.php @@ -195,8 +195,6 @@ abstract class GenericDoc $this->description $seeAlso - --- - Generated by [danog/phpdoc](https://phpdoc.daniil.it). EOF; } /** diff --git a/src/PhpDoc/MethodDoc.php b/src/PhpDoc/MethodDoc.php index e1c87f0..2bb4bc5 100644 --- a/src/PhpDoc/MethodDoc.php +++ b/src/PhpDoc/MethodDoc.php @@ -144,6 +144,8 @@ class MethodDoc extends GenericDoc } $sig .= $this->seeAlso(); $sig .= "\n"; + $sig .= "---\n"; + $sig .= "Generated by [danog/phpdoc](https://phpdoc.daniil.it)\n"; return $sig; } }