PHP_CodeSniffer_Fixer::addNewlineBefore PHP Méthode

addNewlineBefore() public méthode

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.
Résultat boolean If the change was accepted.
    public function addNewlineBefore($stackPtr)
    {
        $current = $this->getTokenContent($stackPtr);
        return $this->replaceToken($stackPtr, $this->_currentFile->eolChar . $current);
    }