PhpdocSingleLineVarFixer
in package
implements
FixerInterface
Main implementation taken from kubawerlos/php-cs-fixer-customere-fixers Copyright (c) 2018 Kuba Werłos
Slightly modified to work without the gazillion of composer dependencies
Original: https://github.com/kubawerlos/php-cs-fixer-custom-fixers/blob/master/src/Fixer/PhpdocSingleLineVarFixer.php
Table of Contents
Interfaces
- FixerInterface
Methods
- fix() : void
- getDefinition() : FixerDefinition
- getName() : string
- getPriority() : int
- isCandidate() : bool
- isRisky() : bool
- supports() : bool
Methods
fix()
public
fix(SplFileInfo $file, Tokens $tokens) : void
Parameters
- $file : SplFileInfo
- $tokens : Tokens
getDefinition()
public
getDefinition() : FixerDefinition
Return values
FixerDefinitiongetName()
public
getName() : string
Return values
stringgetPriority()
public
getPriority() : int
Return values
intisCandidate()
public
isCandidate(Tokens $tokens) : bool
Parameters
- $tokens : Tokens
Return values
boolisRisky()
public
isRisky() : bool
Return values
boolsupports()
public
supports(SplFileInfo $file) : bool
Parameters
- $file : SplFileInfo