Symfony/Sniffs/Commenting/FunctionCommentSniff.php
protected function isMatchingReturn($tokens, $returnPos)
    {
        do {
            $returnPos++;
        } while ($tokens[$returnPos]['code'] === T_WHITESPACE);

        return $tokens[$returnPos]['code'] !== T_SEMICOLON;
    }
protected function isMatchingReturn($tokens, $returnPos)
    {
        do {
            $returnPos++;
        } while ($tokens[$returnPos]['code'] === T_WHITESPACE);

        return $tokens[$returnPos]['code'] !== T_SEMICOLON;
    }
protected function isMatchingReturn ( $ tokens , $ returnPos ) { do { $ returnPos ++ ; } while ( $ tokens [ $ returnPos ] [ 'code' ] === T_WHITESPACE ) ; return $ tokens [ $ returnPos ] [ 'code' ] !== T_SEMICOLON ; }
Is the return statement matching?

@param array $tokens    Array of tokens
@param int   $returnPos Stack position of the T_RETURN token to process

@return boolean True if the return does not return anything
Is the return statement matching?