function RequireNullSafeObjectOperatorSniff::getNextIdentificator
*
Return value
array<int, int>|null
2 calls to RequireNullSafeObjectOperatorSniff::getNextIdentificator()
- RequireNullSafeObjectOperatorSniff::checkNextCondition in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ ControlStructures/ RequireNullSafeObjectOperatorSniff.php - RequireNullSafeObjectOperatorSniff::checkTernaryOperator in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ ControlStructures/ RequireNullSafeObjectOperatorSniff.php
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ ControlStructures/ RequireNullSafeObjectOperatorSniff.php, line 356
Class
Namespace
SlevomatCodingStandard\Sniffs\ControlStructuresCode
private function getNextIdentificator(File $phpcsFile, int $pointerBefore) : ?array {
/** @var int $nextIdentificatorStartPointer */
$nextIdentificatorStartPointer = TokenHelper::findNextEffective($phpcsFile, $pointerBefore + 1);
$nextIdentificatorEndPointer = $this->findIdentificatorEnd($phpcsFile, $nextIdentificatorStartPointer);
if ($nextIdentificatorEndPointer === null) {
return null;
}
return [
$nextIdentificatorStartPointer,
$nextIdentificatorEndPointer,
];
}