mirror of
https://github.com/danog/phpdoc.git
synced 2024-11-30 04:29:12 +01:00
Only generate footer for functions, not methods
This commit is contained in:
parent
0c33bf3bf2
commit
7890d5ac29
@ -31,4 +31,16 @@ class FunctionDoc extends MethodDoc
|
|||||||
|
|
||||||
parent::__construct($builder, $reflectionClass);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -144,8 +144,6 @@ class MethodDoc extends GenericDoc
|
|||||||
}
|
}
|
||||||
$sig .= $this->seeAlso();
|
$sig .= $this->seeAlso();
|
||||||
$sig .= "\n";
|
$sig .= "\n";
|
||||||
$sig .= "---\n";
|
|
||||||
$sig .= "Generated by [danog/phpdoc](https://phpdoc.daniil.it)\n";
|
|
||||||
return $sig;
|
return $sig;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user