protected function handleControlStructure($node) {
    $this->handleParens($node);
    $colons = $node->children(Filter::isTokenType(':'));
    foreach ($colons as $colon) {
      $this->removeSpaceBefore($colon);
    }
    if ($colons->isNotEmpty()) {
      $this->newlineBefore($node->lastChild()->previous());
    }
  }
protected function handleControlStructure($node) {
    $this->handleParens($node);
    $colons = $node->children(Filter::isTokenType(':'));
    foreach ($colons as $colon) {
      $this->removeSpaceBefore($colon);
    }
    if ($colons->isNotEmpty()) {
      $this->newlineBefore($node->lastChild()->previous());
    }
  }
protected function handleControlStructure ( $ node ) { $ this -> handleParens ( $ node ) ; $ colons = $ node -> children ( Filter :: isTokenType ( ':' ) ) ; foreach ( $ colons as $ colon ) { $ this -> removeSpaceBefore ( $ colon ) ; } if ( $ colons -> isNotEmpty ( ) ) { $ this -> newlineBefore ( $ node -> lastChild ( ) -> previous ( ) ) ; } }
Generic formatting rules for control structures.

@param IfNode|ForNode|ForeachNode|SwitchNode|DoWhileNode|WhileNode $node
Generic formatting rules for control structures .