NonPrintableCharacterFixer
extends AbstractFixer
in package
implements
ConfigurationDefinitionFixerInterface
Removes Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols.
Tags
Interfaces, Classes and Traits
Table of Contents
- $symbolsReplace : mixed
- $tokens : mixed
- __construct() : mixed
- getDefinition() : mixed
- {@inheritdoc}
- isCandidate() : mixed
- {@inheritdoc}
- isRisky() : mixed
- {@inheritdoc}
- applyFix() : mixed
- {@inheritdoc}
- createConfigurationDefinition() : mixed
- {@inheritdoc}
Properties
$symbolsReplace
private
mixed
$symbolsReplace
$tokens
private
static mixed
$tokens
= [T_STRING_VARNAME, T_INLINE_HTML, T_VARIABLE, T_COMMENT, T_ENCAPSED_AND_WHITESPACE, T_CONSTANT_ENCAPSED_STRING, T_DOC_COMMENT]
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getDefinition()
{@inheritdoc}
public
getDefinition() : mixed
Return values
mixed —isCandidate()
{@inheritdoc}
public
isCandidate(Tokens $tokens) : mixed
Parameters
- $tokens : Tokens
Return values
mixed —isRisky()
{@inheritdoc}
public
isRisky() : mixed
Return values
mixed —applyFix()
{@inheritdoc}
protected
applyFix(SplFileInfo $file, Tokens $tokens) : mixed
Parameters
- $file : SplFileInfo
- $tokens : Tokens
Return values
mixed —createConfigurationDefinition()
{@inheritdoc}
protected
createConfigurationDefinition() : mixed