Fix spacing around commas
This commit is contained in:
@ -42,9 +42,11 @@ class SendingQueue {
|
|||||||
}
|
}
|
||||||
// get subscribers
|
// get subscribers
|
||||||
$queue->subscribers = SubscribersTask::get($queue->subscribers);
|
$queue->subscribers = SubscribersTask::get($queue->subscribers);
|
||||||
foreach(array_chunk($queue->subscribers['to_process'], self::BATCH_SIZE)
|
$subscriber_batches = array_chunk(
|
||||||
as $subscribers_to_process_ids
|
$queue->subscribers['to_process'],
|
||||||
) {
|
self::BATCH_SIZE
|
||||||
|
);
|
||||||
|
foreach($subscriber_batches as $subscribers_to_process_ids) {
|
||||||
$found_subscribers = SubscriberModel::whereIn('id', $subscribers_to_process_ids)
|
$found_subscribers = SubscriberModel::whereIn('id', $subscribers_to_process_ids)
|
||||||
->findArray();
|
->findArray();
|
||||||
$found_subscribers_ids = Helpers::arrayColumn($found_subscribers, 'id');
|
$found_subscribers_ids = Helpers::arrayColumn($found_subscribers, 'id');
|
||||||
|
@ -666,8 +666,8 @@ class Subscriber extends Model {
|
|||||||
'(' . implode(', ', $columns) . ') ' .
|
'(' . implode(', ', $columns) . ') ' .
|
||||||
'VALUES ' . rtrim(
|
'VALUES ' . rtrim(
|
||||||
str_repeat(
|
str_repeat(
|
||||||
'(' . rtrim(str_repeat('?,', count($columns)), ',') . ')' . ', '
|
'(' . rtrim(str_repeat('?,', count($columns)), ',') . ')' . ', ',
|
||||||
, count($values)
|
count($values)
|
||||||
),
|
),
|
||||||
', '
|
', '
|
||||||
),
|
),
|
||||||
|
@ -58,8 +58,8 @@ class SubscriberCustomField extends Model {
|
|||||||
'(custom_field_id, subscriber_id, value) ' .
|
'(custom_field_id, subscriber_id, value) ' .
|
||||||
'VALUES ' . rtrim(
|
'VALUES ' . rtrim(
|
||||||
str_repeat(
|
str_repeat(
|
||||||
'(?, ?, ?)' . ', '
|
'(?, ?, ?)' . ', ',
|
||||||
, count($values)
|
count($values)
|
||||||
), ', '
|
), ', '
|
||||||
),
|
),
|
||||||
Helpers::flattenArray($values)
|
Helpers::flattenArray($values)
|
||||||
|
Reference in New Issue
Block a user