From 008dec28e0e4f26c930bc1df0feca028cb67caa9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Oct 2020 18:50:00 +0200 Subject: [PATCH] Some more fixes --- src/PhpDoc/ClassDoc.php | 3 +++ src/PhpDoc/GenericDoc.php | 2 -- src/PhpDoc/MethodDoc.php | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) 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; } }