PHP Class PhpCsFixer\AbstractPhpdocTypesFixer

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

Protected Properties

Свойство Type Description
$tags string[] The annotation tags search inside.

Méthodes publiques

Méthode Description
__construct ( )
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Méthodes protégées

Méthode Description
normalize ( string $type ) : string Actually normalize the given type.

Private Methods

Méthode 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 méthode

public __construct ( )

fix() public méthode

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

isCandidate() public méthode

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

normalize() abstract protected méthode

Actually normalize the given type.
abstract protected normalize ( string $type ) : string
$type string
Résultat string

Property Details

$tags protected_oe property

The annotation tags search inside.
protected string[] $tags
Résultat string[]