public function process(Tokens $tokens, Token $token, $index)
    {
        if (!$token->isGivenKind(T_NAMESPACE)) {
            return;
        }

        $nextIndex = $tokens->getNextMeaningfulToken($index);
        $nextToken = $tokens[$nextIndex];

        if ($nextToken->isGivenKind(T_NS_SEPARATOR)) {
            $tokens[$index] = new Token([CT::T_NAMESPACE_OPERATOR, $token->getContent()]);
        }
    }
public function process(Tokens $tokens, Token $token, $index)
    {
        if (!$token->isGivenKind(T_NAMESPACE)) {
            return;
        }

        $nextIndex = $tokens->getNextMeaningfulToken($index);
        $nextToken = $tokens[$nextIndex];

        if ($nextToken->isGivenKind(T_NS_SEPARATOR)) {
            $tokens[$index] = new Token([CT::T_NAMESPACE_OPERATOR, $token->getContent()]);
        }
    }
public function process ( Tokens $ tokens , Token $ token , $ index ) { if ( ! $ token -> isGivenKind ( T_NAMESPACE ) ) { return ; } $ nextIndex = $ tokens -> getNextMeaningfulToken ( $ index ) ; $ nextToken = $ tokens [ $ nextIndex ] ; if ( $ nextToken -> isGivenKind ( T_NS_SEPARATOR ) ) { $ tokens [ $ index ] = new Token ( [ CT :: T_NAMESPACE_OPERATOR , $ token -> getContent ( ) ] ) ; } }
{@inheritdoc}
{