protected function newlineAfter(Node $node) {
    $next = $node->nextToken();
    if ($next instanceof WhitespaceNode) {
      $next->setText($this->getNewlineIndent($next));
    }
    else {
      $node->after(Token::whitespace($this->getNewlineIndent()));
    }
  }
protected function newlineAfter(Node $node) {
    $next = $node->nextToken();
    if ($next instanceof WhitespaceNode) {
      $next->setText($this->getNewlineIndent($next));
    }
    else {
      $node->after(Token::whitespace($this->getNewlineIndent()));
    }
  }
protected function newlineAfter ( Node $ node ) { $ next = $ node -> nextToken ( ) ; if ( $ next instanceof WhitespaceNode ) { $ next -> setText ( $ this -> getNewlineIndent ( $ next ) ) ; } else { $ node -> after ( Token :: whitespace ( $ this -> getNewlineIndent ( ) ) ) ; } }
Set so there a newline after a node.

@param Node $node
Node to set newline after.
Set so there a newline after a node .