protected function encloseBlock($node) {
    if ($node && !($node instanceof StatementBlockNode)) {
      $blockNode = new StatementBlockNode();
      $blockNode->append([Token::openBrace(), clone $node, Token::closeBrace()]);
      $node->replaceWith($blockNode);
    }
  }
protected function encloseBlock($node) {
    if ($node && !($node instanceof StatementBlockNode)) {
      $blockNode = new StatementBlockNode();
      $blockNode->append([Token::openBrace(), clone $node, Token::closeBrace()]);
      $node->replaceWith($blockNode);
    }
  }
protected function encloseBlock ( $ node ) { if ( $ node && ! ( $ node instanceof StatementBlockNode ) ) { $ blockNode = new StatementBlockNode ( ) ; $ blockNode -> append ( [ Token :: openBrace ( ) , clone $ node , Token :: closeBrace ( ) ] ) ; $ node -> replaceWith ( $ blockNode ) ; } }
Wrap single line body statements in braces.

@param Node|NULL $node
Wrap single line body statements in braces .