Skip to content

Commit

Permalink
MAE-966: Apply PHPCS linters fix
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Nov 29, 2022
1 parent cb56ea5 commit 8ceb9e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v3/Activity/Getmonthswithactivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function civicrm_api3_activity_Getmonthswithactivities(array $params) {
$grouped_activity_dates = [];

foreach ($activities as $activity) {
list($activity_year, $activity_month) = explode('-', $activity['activity_date_time']);
[$activity_year, $activity_month] = explode('-', $activity['activity_date_time']);

$activity_group_index = -1;
foreach ($grouped_activity_dates as $key => $val) {
Expand Down Expand Up @@ -119,7 +119,7 @@ function get_records_from_activity_get_api(array $params) {
$sort = explode(', ', $options['sort']);

foreach ($sort as $index => &$sortString) {
list($sortField, $dir) = array_pad(explode(' ', $sortString), 2, 'ASC');
[$sortField, $dir] = array_pad(explode(' ', $sortString), 2, 'ASC');
if ($sortField == 'is_overdue') {
$incomplete = implode(',', array_keys(CRM_Activity_BAO_Activity::getStatusesByType(CRM_Activity_BAO_Activity::INCOMPLETE)));
$sql->orderBy("IF((a.activity_date_time >= NOW() OR a.status_id NOT IN ($incomplete)), 0, 1) $dir", NULL, $index);
Expand Down

0 comments on commit 8ceb9e5

Please sign in to comment.