Commit 12ec947c authored by Guy Thouret's avatar Guy Thouret

(chore) Linting recent changes - #590

1 merge request!285Reward Factors for User Activity
Pipeline #81783180 failed with stages
in 10 minutes and 54 seconds
......@@ -16,9 +16,9 @@ class UserStateChange implements Interfaces\QueueRunner
$client = Queue\Client::Build();
$client->setQueue('UserStateChanges')
->receive(function ($data) {
$data = $data->getData();
$data = $data->getData();
$event = isset($data['estimate']) ? 'user_state_change_estimate' : 'user_state_change';
Dispatcher::trigger($event, $data['user_state_change']['state'], $data['user_state_change']);
});
});
}
}
......@@ -38,8 +38,9 @@ class Time
/* Exclusive not inclusive range should ignore first interval value */
if ($startTs < $endTs)
if ($startTs < $endTs) {
$startTs += $interval;
}
$intervals = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment