1
0
mirror of https://github.com/danog/phpdoc.git synced 2024-11-26 12:04:47 +01:00

Only generate footer for functions, not methods

This commit is contained in:
Daniil Gentili 2020-10-15 20:07:38 +02:00
parent 0c33bf3bf2
commit 7890d5ac29
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 12 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}