application/libraries/php-ml-master/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php
/**
     * Processes this test, when one of its tokens is encountered.
     *
     * @param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
     * @param int                         $stackPtr  The position of the current token in
     *                                               the stack passed in $tokens.
     *
     * @return void
     */
Processes this test, when one of its tokens is encountered.
@param \PHP_CodeSniffer\Files\File $phpcsFile The file being scanned.
@param int                         $stackPtr  The position of the current token in
the stack passed in $tokens.

@return void
Processes this test when one of its tokens is encountered . @param \ PHP_CodeSniffer \ Files \ File $phpcsFile The file being scanned . @param int $stackPtr The position of the current token in the stack passed in $tokens . @return void
public function process(File $phpcsFile, $stackPtr)
    {
        $tokens = $phpcsFile->getTokens();
        if (substr($tokens[$stackPtr]['content'], 0, 2) === '#!') {
            return;
        }
        $error = 'PHP files must only contain PHP code';
        $phpcsFile->addError($error, $stackPtr, 'Found');
        return $phpcsFile->numTokens;
    }
public function process ( File $ phpcsFile , $ stackPtr ) { $ tokens = $ phpcsFile -> getTokens ( ) ; if ( substr ( $ tokens [ $ stackPtr ] [ 'content' ] , 0 , 2 ) === '#!' ) { return ; } $ error = 'PHP files must only contain PHP code' ; $ phpcsFile -> addError ( $ error , $ stackPtr , 'Found' ) ; return $ phpcsFile -> numTokens ; }
Processes this test, when one of its tokens is encountered.
Processes this test when one of its tokens is encountered .
// Ignore shebang lines.