PHP 클래스 SlevomatCodingStandard\Helpers\TokenHelper

파일 보기 프로젝트 열기: slevomat/coding-standard 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$ineffectiveTokenCodes
$nameTokenCodes
$typeKeywordTokenCodes

공개 메소드들

메소드 설명
findFirstTokenOnNextLine ( PHP_CodeSniffer_File $phpcsFile, integer $pointer ) : integer | null
findNextAnyToken ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
findNextEffective ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
findNextExcluding ( PHP_CodeSniffer_File $phpcsFile, integer | integer[] $types, integer $startPointer, integer | null $endPointer = null ) : integer | null
findPreviousEffective ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
findPreviousExcluding ( PHP_CodeSniffer_File $phpcsFile, integer[] | integer $types, integer $startPointer, integer | null $endPointer = null ) : integer | null
getContent ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : string
getLastTokenPointer ( PHP_CodeSniffer_File $phpcsFile ) : integer

메소드 상세

findFirstTokenOnNextLine() 공개 정적인 메소드

public static findFirstTokenOnNextLine ( PHP_CodeSniffer_File $phpcsFile, integer $pointer ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$pointer integer search starts at this token, inclusive
리턴 integer | null

findNextAnyToken() 공개 정적인 메소드

public static findNextAnyToken ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 integer | null

findNextEffective() 공개 정적인 메소드

public static findNextEffective ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 integer | null

findNextExcluding() 공개 정적인 메소드

public static findNextExcluding ( PHP_CodeSniffer_File $phpcsFile, integer | integer[] $types, integer $startPointer, integer | null $endPointer = null ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$types integer | integer[]
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 integer | null

findPreviousEffective() 공개 정적인 메소드

public static findPreviousEffective ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 integer | null

findPreviousExcluding() 공개 정적인 메소드

public static findPreviousExcluding ( PHP_CodeSniffer_File $phpcsFile, integer[] | integer $types, integer $startPointer, integer | null $endPointer = null ) : integer | null
$phpcsFile PHP_CodeSniffer_File
$types integer[] | integer
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 integer | null

getContent() 공개 정적인 메소드

public static getContent ( PHP_CodeSniffer_File $phpcsFile, integer $startPointer, integer | null $endPointer = null ) : string
$phpcsFile PHP_CodeSniffer_File
$startPointer integer search starts at this token, inclusive
$endPointer integer | null search ends at this token, exclusive
리턴 string

getLastTokenPointer() 공개 정적인 메소드

public static getLastTokenPointer ( PHP_CodeSniffer_File $phpcsFile ) : integer
$phpcsFile PHP_CodeSniffer_File
리턴 integer

프로퍼티 상세

$ineffectiveTokenCodes 공개적으로 정적으로 프로퍼티

public static $ineffectiveTokenCodes

$nameTokenCodes 공개적으로 정적으로 프로퍼티

public static $nameTokenCodes

$typeKeywordTokenCodes 공개적으로 정적으로 프로퍼티

public static $typeKeywordTokenCodes