Open jrfnl opened 1 year ago
Sort of a mix between the File::getNext()/File::getPrevious() methods and the File::getStartOfStatement()/File::getEndOfStatement() methods.
File::getNext()
File::getPrevious()
File::getStartOfStatement()
File::getEndOfStatement()
Method should take the following parameters: File $phpcsFile, int $stackPtr, ?int $end, array|string|int $types
File $phpcsFile, int $stackPtr, ?int $end, array|string|int $types
The method should skip over:
$types should be checked to not include the tokens being skipped over.
$types
Typical use cases:
Sort of a mix between the
File::getNext()
/File::getPrevious()
methods and theFile::getStartOfStatement()
/File::getEndOfStatement()
methods.Method should take the following parameters:
File $phpcsFile, int $stackPtr, ?int $end, array|string|int $types
The method should skip over:
$types
should be checked to not include the tokens being skipped over.Typical use cases: