protected function spaceAfter(Node $node) {
    $next = $node->nextToken();
    if ($next instanceof WhitespaceNode) {
      $next->setText(' ');
    }
    else {
      $node->after(Token::space());
    }
  }
protected function spaceAfter(Node $node) {
    $next = $node->nextToken();
    if ($next instanceof WhitespaceNode) {
      $next->setText(' ');
    }
    else {
      $node->after(Token::space());
    }
  }
protected function spaceAfter ( Node $ node ) { $ next = $ node -> nextToken ( ) ; if ( $ next instanceof WhitespaceNode ) { $ next -> setText ( ' ' ) ; } else { $ node -> after ( Token :: space ( ) ) ; } }
Set a single space after a node.

@param Node $node
Node to set space after.
Set a single space after a node .