ClassFinder.php
private static function getName($key, array $tokens): ?string
    {
        $class      = null;
        $tokenCount = \count($tokens);

        for ($i = $key; $i < $tokenCount; $i++) {
            if (\is_array($tokens[$i])) {
                if ($tokens[$i][0] === \T_STRING) {
                    $class .= $tokens[$i][1];
                } elseif ($tokens[$i][0] === \T_WHITESPACE) {
                    return $class;
                }
            }
        }

        return null;
    }
private static function getName($key, array $tokens): ?string
    {
        $class      = null;
        $tokenCount = \count($tokens);

        for ($i = $key; $i < $tokenCount; $i++) {
            if (\is_array($tokens[$i])) {
                if ($tokens[$i][0] === \T_STRING) {
                    $class .= $tokens[$i][1];
                } elseif ($tokens[$i][0] === \T_WHITESPACE) {
                    return $class;
                }
            }
        }

        return null;
    }
private static function getName ( $ key , array $ tokens ) : ? string { $ class = null ; $ tokenCount = \ count ( $ tokens ) ; for ( $ i = $ key ; $ i < $ tokenCount ; $ i ++ ) { if ( \ is_array ( $ tokens [ $ i ] ) ) { if ( $ tokens [ $ i ] [ 0 ] === \ T_STRING ) { $ class .= $ tokens [ $ i ] [ 1 ] ; } elseif ( $ tokens [ $ i ] [ 0 ] === \ T_WHITESPACE ) { return $ class ; } } } return null ; }
Find the name in the tokens starting at a given key.

@param int   $key
@param array $tokens

@return null|string
Find the name in the tokens starting at a given key .