PHP Class PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer

Author: Dariusz Rumiński ([email protected])
Author: SpacePossum
Inheritance: extends PhpCsFixer\AbstractFixer, implements PhpCsFixer\Fixer\ConfigurableFixerInterface
Exibir arquivo Open project: friendsofphp/php-cs-fixer

Public Methods

Method Description
configure ( array $configuration = null ) Any of the class elements 'property', 'method' or 'const' can be configured.
fix ( SplFileInfo $file, Tokens $tokens )
isCandidate ( Tokens $tokens )

Protected Methods

Method Description
getDescription ( )

Private Methods

Method Description
fixConstVisibility ( Tokens $tokens, integer $index )
fixMethodVisibility ( Tokens $tokens, integer $index )
fixPropertyVisibility ( Tokens $tokens, integer $index )
grabAttribsBeforeMethodToken ( Tokens $tokens, integer $index ) : array Grab attributes before method token at given index.
grabAttribsBeforePropertyToken ( Tokens $tokens, integer $index ) : array Grab attributes before property token at given index.
grabAttribsBeforeToken ( Tokens $tokens, integer $index, array $tokenAttribsMap, array $attribs ) : array Grab info about attributes before token at given index.
overrideAttribs ( Tokens $tokens, integer $memberIndex, array $attribs ) Apply token attributes.

Method Details

configure() public method

Note: the 'const' configuration is only valid when running on PHP >= 7.1 Use 'null' for default configuration ('property', 'method').
public configure ( array $configuration = null )
$configuration array

fix() public method

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

getDescription() protected method

protected getDescription ( )

isCandidate() public method

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