Skip to content

Commit

Permalink
Adds support for an mddoc-ignore attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Donat <[email protected]>
  • Loading branch information
donatj committed Nov 30, 2023
1 parent 7f504b3 commit 7bd7edf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Documentation/PhpFileDocs.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,11 @@ private function shouldSkip( DocBlock $block ) : bool {
if( (string)$access->getDescription() !== 'public' ) {
return true;
}
} elseif( $block->getTagsByName('ignore')
} elseif(
$block->getTagsByName('ignore')
|| $block->getTagsByName('private')
|| $block->getTagsByName('internal')
|| $block->getTagsByName('mddoc-ignore')
) {
return true;
}
Expand Down Expand Up @@ -496,8 +498,8 @@ private function getArgumentString( $method ) : string {
}

return implode(', ', $req_args) .
($opt_args ? ($req_args ? ' [, ' : '[ ') : '') .
implode(' [, ', $opt_args) . str_repeat(']', count($opt_args));
($opt_args ? ($req_args ? ' [, ' : '[ ') : '') .
implode(' [, ', $opt_args) . str_repeat(']', count($opt_args));
}

private function descriptionFormat( string ...$args ) : DocumentDepth {
Expand Down

0 comments on commit 7bd7edf

Please sign in to comment.