PHP Class PhpCsFixer\AbstractPhpdocTypesFixer

Author: Graham Campbell ([email protected])
Inheritance: extends AbstractFixer
Exibir arquivo Open project: friendsofphp/php-cs-fixer

Protected Properties

Property Type Description
$tags string[] The annotation tags search inside.

Public Methods

Method Description
__construct ( )
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
normalize ( string $type ) : string Actually normalize the given type.

Private Methods

Method Description
fixTypes ( Annotation $annotation ) Fix the types at the given line.
normalizeType ( string $type ) : string Prepare the type and normalize it.
normalizeTypes ( array $types ) : string[] Normalize the given types.

Method Details

__construct() public method

public __construct ( )

fix() public method

public fix ( SplFileInfo $file, Tokens $tokens )
$file SplFileInfo
$tokens PhpCsFixer\Tokenizer\Tokens

isCandidate() public method

public isCandidate ( Tokens $tokens )
$tokens PhpCsFixer\Tokenizer\Tokens

normalize() abstract protected method

Actually normalize the given type.
abstract protected normalize ( string $type ) : string
$type string
return string

Property Details

$tags protected_oe property

The annotation tags search inside.
protected string[] $tags
return string[]