protected function fixAnnotations(Tokens $tokens)
    {
        $scopes = [];
        foreach ($tokens as $token) {
            if ($token->isType(DocLexer::T_OPEN_PARENTHESIS)) {
                $scopes[] = 'annotation';

                continue;
            }

            if ($token->isType(DocLexer::T_OPEN_CURLY_BRACES)) {
                $scopes[] = 'array';

                continue;
            }

            if ($token->isType([DocLexer::T_CLOSE_PARENTHESIS, DocLexer::T_CLOSE_CURLY_BRACES])) {
                array_pop($scopes);

                continue;
            }

            if ('array' === end($scopes) && $token->isType([DocLexer::T_EQUALS, DocLexer::T_COLON])) {
                $token->setContent($this->configuration['operator']);
            }
        }
    }
protected function fixAnnotations(Tokens $tokens)
    {
        $scopes = [];
        foreach ($tokens as $token) {
            if ($token->isType(DocLexer::T_OPEN_PARENTHESIS)) {
                $scopes[] = 'annotation';

                continue;
            }

            if ($token->isType(DocLexer::T_OPEN_CURLY_BRACES)) {
                $scopes[] = 'array';

                continue;
            }

            if ($token->isType([DocLexer::T_CLOSE_PARENTHESIS, DocLexer::T_CLOSE_CURLY_BRACES])) {
                array_pop($scopes);

                continue;
            }

            if ('array' === end($scopes) && $token->isType([DocLexer::T_EQUALS, DocLexer::T_COLON])) {
                $token->setContent($this->configuration['operator']);
            }
        }
    }
protected function fixAnnotations ( Tokens $ tokens ) { $ scopes = [ ] ; foreach ( $ tokens as $ token ) { if ( $ token -> isType ( DocLexer :: T_OPEN_PARENTHESIS ) ) { $ scopes [ ] = 'annotation' ; continue ; } if ( $ token -> isType ( DocLexer :: T_OPEN_CURLY_BRACES ) ) { $ scopes [ ] = 'array' ; continue ; } if ( $ token -> isType ( [ DocLexer :: T_CLOSE_PARENTHESIS , DocLexer :: T_CLOSE_CURLY_BRACES ] ) ) { array_pop ( $ scopes ) ; continue ; } if ( 'array' === end ( $ scopes ) && $ token -> isType ( [ DocLexer :: T_EQUALS , DocLexer :: T_COLON ] ) ) { $ token -> setContent ( $ this -> configuration [ 'operator' ] ) ; } } }
{@inheritdoc}
{