PhpdocNoUselessInheritdocFixer
extends AbstractFixer
in package
Remove inheritdoc tags from classy that does not inherit.
Tags
Table of Contents
- getDefinition() : mixed
- {@inheritdoc}
- getPriority() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- fixClassy() : int
- fixClassyInside() : mixed
- fixClassyOutside() : mixed
- fixToken() : mixed
- isExtendingOrImplementing() : bool
- isUsingTrait() : bool
Methods
getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —getPriority()
{@inheritdoc}
public
getPriority() : mixed
Must run before NoEmptyPhpdocFixer, NoTrailingWhitespaceInCommentFixer, PhpdocAlignFixer. Must run after AlignMultilineCommentFixer, CommentToPhpdocFixer, PhpdocIndentFixer, PhpdocScalarFixer, PhpdocToCommentFixer, PhpdocToCommentFixer, PhpdocTypesFixer.
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —fixClassy()
private
fixClassy(Tokens $tokens, int $index) : int
Parameters
- $tokens : Tokens
- $index : int
Return values
int —fixClassyInside()
private
fixClassyInside(Tokens $tokens, int $classOpenIndex, int $classEndIndex, bool $fixThisLevel) : mixed
Parameters
- $tokens : Tokens
- $classOpenIndex : int
- $classEndIndex : int
- $fixThisLevel : bool
Return values
mixed —fixClassyOutside()
private
fixClassyOutside(Tokens $tokens, int $classIndex) : mixed
Parameters
- $tokens : Tokens
- $classIndex : int
Return values
mixed —fixToken()
private
fixToken(Tokens $tokens, int $tokenIndex) : mixed
Parameters
- $tokens : Tokens
- $tokenIndex : int
Return values
mixed —isExtendingOrImplementing()
private
isExtendingOrImplementing(Tokens $tokens, int $classIndex, int $classOpenIndex) : bool
Parameters
- $tokens : Tokens
- $classIndex : int
- $classOpenIndex : int
Return values
bool —isUsingTrait()
private
isUsingTrait(Tokens $tokens, int $classIndex, int $classOpenIndex, int $classCloseIndex) : bool
Parameters
- $tokens : Tokens
- $classIndex : int
- $classOpenIndex : int
- $classCloseIndex : int