protected function removeSpaceBefore(Node $node) {
    $prev = $node->previousToken();
    if ($prev instanceof WhitespaceNode) {
      $prev->remove();
    }
  }
protected function removeSpaceBefore(Node $node) {
    $prev = $node->previousToken();
    if ($prev instanceof WhitespaceNode) {
      $prev->remove();
    }
  }
protected function removeSpaceBefore ( Node $ node ) { $ prev = $ node -> previousToken ( ) ; if ( $ prev instanceof WhitespaceNode ) { $ prev -> remove ( ) ; } }
Remove whitespace before a node.

@param Node $node
Node to remove space before.
Remove whitespace before a node .