Documentation

BacktickToShellExecFixer extends AbstractFixer
in package

FinalYes
Tags
author

Filippo Tessarotto zoeslam@gmail.com

Table of Contents

Methods

getDefinition()  : FixerDefinitionInterface
getPriority()  : int
{@inheritdoc}
isCandidate()  : bool
applyFix()  : void
fixBackticks()  : void
Override backtick code with corresponding double-quoted string.

Methods

getPriority()

{@inheritdoc}

public getPriority() : int

Must run before EscapeImplicitBackslashesFixer, ExplicitStringVariableFixer, NativeFunctionInvocationFixer, SingleQuoteFixer, StringImplicitBackslashesFixer.

Return values
int

fixBackticks()

Override backtick code with corresponding double-quoted string.

private fixBackticks(Tokens $tokens, array<int, Token$backtickTokens) : void
Parameters
$tokens : Tokens
$backtickTokens : array<int, Token>

        
On this page

Search results