src/StaticAnalyser.php
private function nextToken(&$tokens, $context)
    {
        while (true) {
            $token = next($tokens);
            if ($token[0] === T_WHITESPACE) {
                continue;
            }
            if ($token[0] === T_COMMENT) {
                $pos = strpos($token[1], '@OA\\');
                if ($pos) {
                    $line = $context->line ? $context->line + $token[2] : $token[2];
                    $commentContext = new Context(['line' => $line], $context);
                    Logger::notice('Annotations are only parsed inside `/**` DocBlocks, skipping ' . $commentContext);
                }
                continue;
            }

            return $token;
        }
    }
private function nextToken(&$tokens, $context)
    {
        while (true) {
            $token = next($tokens);
            if ($token[0] === T_WHITESPACE) {
                continue;
            }
            if ($token[0] === T_COMMENT) {
                $pos = strpos($token[1], '@OA\\');
                if ($pos) {
                    $line = $context->line ? $context->line + $token[2] : $token[2];
                    $commentContext = new Context(['line' => $line], $context);
                    Logger::notice('Annotations are only parsed inside `/**` DocBlocks, skipping ' . $commentContext);
                }
                continue;
            }

            return $token;
        }
    }
private function nextToken ( & $ tokens , $ context ) { while ( true ) { $ token = next ( $ tokens ) ; if ( $ token [ 0 ] === T_WHITESPACE ) { continue ; } if ( $ token [ 0 ] === T_COMMENT ) { $ pos = strpos ( $ token [ 1 ] , '@OA\\' ) ; if ( $ pos ) { $ line = $ context -> line ? $ context -> line + $ token [ 2 ] : $ token [ 2 ] ; $ commentContext = new Context ( [ 'line' => $ line ] , $ context ) ; Logger :: notice ( 'Annotations are only parsed inside `/**` DocBlocks, skipping ' . $ commentContext ) ; } continue ; } return $ token ; } }
The next non-whitespace, non-comment token.

@param array   $tokens
@param Context $context

@return string|array The next token (or false)
The next non - whitespace non - comment token .