src/Fixer/Basic/BracesFixer.php
private function findParenthesisEnd(Tokens $tokens, $structureTokenIndex)
    {
        $nextIndex = $tokens->getNextMeaningfulToken($structureTokenIndex);
        $nextToken = $tokens[$nextIndex];

        // return if next token is not opening parenthesis
        if (!$nextToken->equals('(')) {
            return $structureTokenIndex;
        }

        return $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $nextIndex);
    }
private function findParenthesisEnd(Tokens $tokens, $structureTokenIndex)
    {
        $nextIndex = $tokens->getNextMeaningfulToken($structureTokenIndex);
        $nextToken = $tokens[$nextIndex];

        // return if next token is not opening parenthesis
        if (!$nextToken->equals('(')) {
            return $structureTokenIndex;
        }

        return $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $nextIndex);
    }
private function findParenthesisEnd ( Tokens $ tokens , $ structureTokenIndex ) { $ nextIndex = $ tokens -> getNextMeaningfulToken ( $ structureTokenIndex ) ; $ nextToken = $ tokens [ $ nextIndex ] ; // return if next token is not opening parenthesis if ( ! $ nextToken -> equals ( '(' ) ) { return $ structureTokenIndex ; } return $ tokens -> findBlockEnd ( Tokens :: BLOCK_TYPE_PARENTHESIS_BRACE , $ nextIndex ) ; }
@param Tokens $tokens
@param int    $structureTokenIndex

@return int
@param Tokens $tokens @param int $structureTokenIndex