PHP_CodeSniffer_Fixer::addContent PHP Method

addContent() public method

Adds content to the end of a token's current content.
public addContent ( 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 addContent($stackPtr, $content)
    {
        $current = $this->getTokenContent($stackPtr);
        return $this->replaceToken($stackPtr, $current . $content);
    }