function FunctionHelper::getAllFunctionOrMethodPointers
*
Return value
Generator<int>
1 call to FunctionHelper::getAllFunctionOrMethodPointers()
- FunctionHelper::getAllFunctionNames in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Helpers/ FunctionHelper.php - *
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Helpers/ FunctionHelper.php, line 558
Class
- FunctionHelper
- @internal
Namespace
SlevomatCodingStandard\HelpersCode
private static function getAllFunctionOrMethodPointers(File $phpcsFile, int &$previousFunctionPointer) : Generator {
do {
$nextFunctionPointer = TokenHelper::findNext($phpcsFile, T_FUNCTION, $previousFunctionPointer + 1);
if ($nextFunctionPointer === null) {
break;
}
$previousFunctionPointer = $nextFunctionPointer;
(yield $nextFunctionPointer);
} while (true);
}