original_string: private function fixControlStructure(Tokens $tokens, $index)
      {
          // Ensure a single whitespace
          if (!$tokens[$index - 1]->isWhitespace() || $tokens[$index - 1]->isWhitespace($this->singleLineWhitespaceOptions)) {
              $tokens->ensureWhitespaceAtIndex($index - 1, 1, ' ');
          }
  
      }
code: private function fixControlStructure(Tokens $tokens, $index)
      {
          // Ensure a single whitespace
          if (!$tokens[$index - 1]->isWhitespace() || $tokens[$index - 1]->isWhitespace($this->singleLineWhitespaceOptions)) {
              $tokens->ensureWhitespaceAtIndex($index - 1, 1, ' ');
          }
  
      }
code_tokens: private function fixControlStructure ( Tokens $ tokens , $ index ) { // Ensure a single whitespace if ( ! $ tokens [ $ index - 1 ] -> isWhitespace ( ) || $ tokens [ $ index - 1 ] -> isWhitespace ( $ this -> singleLineWhitespaceOptions ) ) { $ tokens -> ensureWhitespaceAtIndex ( $ index - 1 , 1 , ' ' ) ; } }
docstring: Fixes whitespaces around braces of a control structure.
  
  @param Tokens $tokens tokens to handle
  @param int    $index  index of token
docstring_tokens: Fixes whitespaces around braces of a control structure .