extensions/felixfbecker.php-intellisense-0.0.12/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php
/**
     * Find the next CASE or DEFAULT statement from a point in the file.
     *
     * Note that nested switches are ignored.
     *
     * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
     * @param int                  $stackPtr  The position to start looking at.
     * @param int                  $end       The position to stop looking at.
     *
     * @return int | bool
     */
Find the next CASE or DEFAULT statement from a point in the file.
Note that nested switches are ignored.

@param PHP_CodeSniffer_File $phpcsFile The file being scanned.
@param int                  $stackPtr  The position to start looking at.
@param int                  $end       The position to stop looking at.

@return int | bool
Find the next CASE or DEFAULT statement from a point in the file . Note that nested switches are ignored . @param PHP_CodeSniffer_File $phpcsFile The file being scanned . @param int $stackPtr The position to start looking at . @param int $end The position to stop looking at . @return int | bool
private function findNextCase($phpcsFile, $stackPtr, $end)
    {
        $tokens = $phpcsFile->getTokens();
        while (($stackPtr = $phpcsFile->findNext(array(T_CASE, T_DEFAULT, T_SWITCH), $stackPtr, $end)) !== false) {
            if ($tokens[$stackPtr]['code'] === T_SWITCH) {
                $stackPtr = $tokens[$stackPtr]['scope_closer'];
                continue;
            }
            break;
        }
        return $stackPtr;
    }
private function findNextCase ( $ phpcsFile , $ stackPtr , $ end ) { $ tokens = $ phpcsFile -> getTokens ( ) ; while ( ( $ stackPtr = $ phpcsFile -> findNext ( array ( T_CASE , T_DEFAULT , T_SWITCH ) , $ stackPtr , $ end ) ) !== false ) { if ( $ tokens [ $ stackPtr ] [ 'code' ] === T_SWITCH ) { $ stackPtr = $ tokens [ $ stackPtr ] [ 'scope_closer' ] ; continue ; } break ; } return $ stackPtr ; }
Find the next CASE or DEFAULT statement from a point in the file.
Find the next CASE or DEFAULT statement from a point in the file .
// Skip nested SWITCH statements; they are handled on their own.