getOldTokens(); $nextTokenPosition = $node->getEndTokenPos() + 1; while (isset($oldTokens[$nextTokenPosition])) { $currentToken = $oldTokens[$nextTokenPosition]; // only space if (\is_array($currentToken) || \RectorPrefix20210725\Nette\Utils\Strings::match($currentToken, '#\\s+#')) { ++$nextTokenPosition; continue; } // without comma if ($currentToken === ')') { return \false; } break; } return \true; } }