PHP_CodeSniffer_Fixer::addNewlineBefore PHP Method

addNewlineBefore() public method

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