AddCsvEscapeParameterRector
extends AbstractRector
in package
FinalYes
Table of Contents
Constants
- CSV_FUNCTIONS : mixed = ['fputcsv', 'fgetcsv', 'str_getcsv']
- CSV_METHODS : mixed = ['fputcsv', 'fgetcsv', 'setCsvControl']
Methods
- getNodeTypes() : array<string|int, mixed>
- getRuleDefinition() : RuleDefinition
- refactor() : Node|null
- createEscapeArg() : Arg
- hasEscapeArgument() : bool
- isTargetFunction() : bool
- isTargetMethod() : bool
Constants
CSV_FUNCTIONS
private
mixed
CSV_FUNCTIONS
= ['fputcsv', 'fgetcsv', 'str_getcsv']
CSV_METHODS
private
mixed
CSV_METHODS
= ['fputcsv', 'fgetcsv', 'setCsvControl']
Methods
getNodeTypes()
public
getNodeTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getRuleDefinition()
public
getRuleDefinition() : RuleDefinition
Return values
RuleDefinitionrefactor()
public
refactor(Node $node) : Node|null
Parameters
- $node : Node
Return values
Node|nullcreateEscapeArg()
private
createEscapeArg() : Arg
Return values
ArghasEscapeArgument()
private
hasEscapeArgument(array<string|int, Arg> $args) : bool
Parameters
- $args : array<string|int, Arg>
Return values
boolisTargetFunction()
private
isTargetFunction(FuncCall $funcCall) : bool
Parameters
- $funcCall : FuncCall
Return values
boolisTargetMethod()
private
isTargetMethod(MethodCall $methodCall) : bool
Parameters
- $methodCall : MethodCall