PHP_CodeSniffer_Fixer::addNewline PHP Method

addNewline() public method

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