PHP 클래스 PHP_CodeSniffer_Tokenizers_Comment, PHP_CodeSniffer

파일 보기 프로젝트 열기: squizlabs/php_codesniffer 1 사용 예제들

공개 메소드들

메소드 설명
tokenizeString ( string $string, string $eolChar, integer $stackPtr ) : array Creates an array of tokens when given some PHP code.

비공개 메소드들

메소드 설명
_collectWhitespace ( string $string, integer $start, integer $end ) : array | null Collect consecutive whitespace into a single token.
_processLine ( string $string, string $eolChar, integer $start, integer $end ) : array Process a single line of a comment.

메소드 상세

tokenizeString() 공개 메소드

Starts by using token_get_all() but does a lot of extra processing to insert information about the context of the token.
public tokenizeString ( string $string, string $eolChar, integer $stackPtr ) : array
$string string The string to tokenize.
$eolChar string The EOL character to use for splitting strings.
$stackPtr integer The position of the first token in the file.
리턴 array