Skip to content

Commit

Permalink
Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
eynimeni committed Feb 10, 2025
1 parent 09fb277 commit a524bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/external/hub/collect_responses.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public static function execute_returns() {
* Submit responses for CatQuiz.
*
* @param string $jsondata The response data as json-encoded string
* @param string $sourceurl The source url
* @return array The status and processed responses
*/
public static function execute($jsondata, $sourceurl) {
Expand Down
6 changes: 5 additions & 1 deletion classes/external/node/submit_responses.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ public static function execute($scaleid) {
// Fetch scale label from the database.
if (!$label = $DB->get_field('local_catquiz_catscales', 'label', ['id' => $scaleid], MUST_EXIST)) {
return [
'message' => get_string('submission_error', 'local_catquiz', get_string('missing_scale_label', 'local_catquiz')),
'message' => get_string(
'submission_error',
'local_catquiz',
get_string('missing_scale_label', 'local_catquiz')
),
'success' => false,
];
}
Expand Down

0 comments on commit a524bad

Please sign in to comment.