Skip to content

Commit

Permalink
Merge branch 'MDL-78872-402' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_402_STABLE
  • Loading branch information
junpataleta committed Aug 9, 2023
2 parents a14e8aa + e30c0b6 commit a8e8576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
6 changes: 1 addition & 5 deletions grade/classes/external/get_groups_for_search_widget.php
Expand Up @@ -57,13 +57,9 @@ public static function execute_parameters(): external_function_parameters {
* @param int $courseid
* @param string $actionbaseurl The base URL for the group action.
* @return array Groups and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
* @deprecated since 4.2
*/
protected static function execute(int $courseid, string $actionbaseurl): array {
public static function execute(int $courseid, string $actionbaseurl): array {
global $DB, $USER, $COURSE;

$params = self::validate_parameters(
Expand Down
6 changes: 1 addition & 5 deletions grade/classes/external/get_groups_for_selector.php
Expand Up @@ -53,12 +53,8 @@ public static function execute_parameters(): external_function_parameters {
*
* @param int $courseid
* @return array Groups and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
*/
protected static function execute(int $courseid): array {
public static function execute(int $courseid): array {
global $DB, $USER;

$params = self::validate_parameters(
Expand Down
11 changes: 2 additions & 9 deletions grade/report/grader/classes/external/get_users_in_report.php
Expand Up @@ -16,7 +16,6 @@

namespace gradereport_grader\external;

use coding_exception;
use context_course;
use core_user_external;
use core_external\external_api;
Expand All @@ -26,9 +25,6 @@
use core_external\external_value;
use core_external\external_warnings;
use grade_report_grader;
use invalid_parameter_exception;
use moodle_exception;
use restricted_context_exception;
use user_picture;

defined('MOODLE_INTERNAL') || die;
Expand Down Expand Up @@ -64,13 +60,10 @@ public static function execute_parameters(): external_function_parameters {
*
* @param int $courseid Course ID to fetch the grader report for.
* @return array Users and warnings to pass back to the calling widget.
* @throws coding_exception
* @throws invalid_parameter_exception
* @throws moodle_exception
* @throws restricted_context_exception
*/
protected static function execute(int $courseid): array {
public static function execute(int $courseid): array {
global $PAGE;

self::validate_parameters(
self::execute_parameters(),
[
Expand Down

0 comments on commit a8e8576

Please sign in to comment.