Simplify code by using intval() instead of if
[MAILPOET-4357]
This commit is contained in:
@ -62,11 +62,7 @@ class ScheduledTaskSubscribersRepository extends Repository {
|
|||||||
->getQuery()
|
->getQuery()
|
||||||
->getSingleScalarResult();
|
->getSingleScalarResult();
|
||||||
|
|
||||||
if (is_numeric($countSubscribers)) {
|
return intval($countSubscribers);
|
||||||
return (int)$countSubscribers;
|
|
||||||
} else {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSubscriberIdsBatchForTask(int $taskId, int $lastProcessedSubscriberId, int $limit): array {
|
public function getSubscriberIdsBatchForTask(int $taskId, int $lastProcessedSubscriberId, int $limit): array {
|
||||||
|
Reference in New Issue
Block a user