src/Fixer/LanguageConstruct/FunctionToConstantFixer.php
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        for ($index = $tokens->count() - 4; $index > 0; --$index) {
            $candidate = $this->getReplaceCandidate($tokens, $index);
            if (null === $candidate) {
                continue;
            }

            $this->fixFunctionCallToConstant(
                $tokens,
                $index,
                $candidate[0], // brace open
                $candidate[1], // brace close
                $candidate[2]  // replacement
            );
        }
    }
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        for ($index = $tokens->count() - 4; $index > 0; --$index) {
            $candidate = $this->getReplaceCandidate($tokens, $index);
            if (null === $candidate) {
                continue;
            }

            $this->fixFunctionCallToConstant(
                $tokens,
                $index,
                $candidate[0], // brace open
                $candidate[1], // brace close
                $candidate[2]  // replacement
            );
        }
    }
protected function applyFix ( \ SplFileInfo $ file , Tokens $ tokens ) { for ( $ index = $ tokens -> count ( ) - 4 ; $ index > 0 ; -- $ index ) { $ candidate = $ this -> getReplaceCandidate ( $ tokens , $ index ) ; if ( null === $ candidate ) { continue ; } $ this -> fixFunctionCallToConstant ( $ tokens , $ index , $ candidate [ 0 ] , // brace open $ candidate [ 1 ] , // brace close $ candidate [ 2 ] // replacement ) ; } }
{@inheritdoc}
{