Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Aug 16, 2023
1 parent dbb6be8 commit 95b1423
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions modules/dataquery/php/queries.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ class Queries extends \NDB_Page
]
);
default:
return new \LORIS\Http\Response\JSON\MethodNotAllowed(['GET', 'POST']);
return new \LORIS\Http\Response\JSON\MethodNotAllowed(
['GET', 'POST']
);
}
}
if (preg_match(
Expand All @@ -82,7 +84,7 @@ class Queries extends \NDB_Page
case 'GET':
return new \LORIS\Http\Response\JSON\OK(
[
'queryruns' => iterator_to_array(
'queryruns' => iterator_to_array(
$this->getRecentRuns($user),
false,
),
Expand Down Expand Up @@ -260,7 +262,11 @@ class Queries extends \NDB_Page
$query->removeAdminPinnedQuery('topquery');
$resp['adminpin'] = 'Unpinned query from dataquery module';
} else {
$query->setAdminPinnedQuery($user, $params['adminname'], 'topquery');
$query->setAdminPinnedQuery(
$user,
$params['adminname'],
'topquery'
);
$resp['adminpin'] = 'Pinned query to dataquery module';
}
}
Expand All @@ -270,7 +276,11 @@ class Queries extends \NDB_Page
$query->removeAdminPinnedQuery('dashboard');
$resp['dashboard'] = 'Unpinned query from dashboard';
} else {
$query->setAdminPinnedQuery($user, $params['dashboardname'], 'dashboard');
$query->setAdminPinnedQuery(
$user,
$params['dashboardname'],
'dashboard'
);
$resp['dashboard'] = 'Pinned query to dashboard';
}
}
Expand Down

0 comments on commit 95b1423

Please # to comment.