PHP_CodeSniffer_Fixer::addContentBefore PHP Method

addContentBefore() public method

Adds content to the start of a token's current content.
public addContentBefore ( integer $stackPtr, string $content ) : boolean
$stackPtr integer The position of the token in the token stack.
$content string The content to add.
return boolean If the change was accepted.
    public function addContentBefore($stackPtr, $content)
    {
        $current = $this->getTokenContent($stackPtr);
        return $this->replaceToken($stackPtr, $content . $current);
    }