PHP_CodeSniffer_Fixer::getTokenContent PHP Method

getTokenContent() public method

This function takes changesets into account so should be used instead of directly accessing the token array.
public getTokenContent ( integer $stackPtr ) : string
$stackPtr integer The position of the token in the token stack.
return string
    public function getTokenContent($stackPtr)
    {
        if ($this->_inChangeset === true && isset($this->_changeset[$stackPtr]) === true) {
            return $this->_changeset[$stackPtr];
        } else {
            return $this->_tokens[$stackPtr];
        }
    }