Skip to content

Commit

Permalink
Skip documenting functions that should be skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Nov 6, 2023
1 parent 1a83f49 commit 620793d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Documentation/PhpFileDocs.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ private function scanSourceFile( string $filename, int $depth ) {

$functions = $reflector->getFunctions();
foreach( $functions as $func ) {
$block = $func->getDocBlock();
if( $this->shouldSkip($block) ) {
continue;
}

$name = $func->getName();
$fqfn = preg_replace('/\s*\(.*$/', '', (string)$func->getFqsen());
$args = $this->getArgumentString($func);
Expand All @@ -106,8 +111,6 @@ private function scanSourceFile( string $filename, int $depth ) {
new CodeBlock("function {$name}({$args}){$fReturnS}", 'php')
);

$block = $func->getDocBlock();

if( $block ) {
$subDocument = new DocumentDepth;
$document->appendChild($subDocument);
Expand Down

0 comments on commit 620793d

Please sign in to comment.