MDL-71189 core_completion: Updates to meet current coding standards

This commit is contained in:
Michael Hawkins 2021-04-07 16:50:36 +08:00
parent 0a986fdf13
commit c997fc7784
3 changed files with 7 additions and 7 deletions

View File

@ -169,19 +169,19 @@ abstract class activity_custom_completion {
* @param string $rule The completion rule.
* @return int The completion state.
*/
public abstract function get_state(string $rule): int;
abstract public function get_state(string $rule): int;
/**
* Fetch the list of custom completion rules that this module defines.
*
* @return array
*/
public abstract static function get_defined_custom_rules(): array;
abstract public static function get_defined_custom_rules(): array;
/**
* Returns an associative array of the descriptions of custom completion rules.
*
* @return array
*/
public abstract function get_custom_rule_descriptions(): array;
abstract public function get_custom_rule_descriptions(): array;
}

View File

@ -18,7 +18,7 @@
* Contains the class for building the user's activity completion details.
*
* @package core_completion
* @copyright Jun Pataleta <jun@moodle.com>
* @copyright 2021 Jun Pataleta <jun@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@ -33,7 +33,7 @@ use completion_info;
* Class for building the user's activity completion details.
*
* @package core_completion
* @copyright Jun Pataleta <jun@moodle.com>
* @copyright 2021 Jun Pataleta <jun@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class cm_completion_details {

View File

@ -18,7 +18,7 @@
* Contains unit tests for core_completion/cm_completion_details.
*
* @package core_completion
* @copyright Jun Pataleta <jun@moodle.com>
* @copyright 2021 Jun Pataleta <jun@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@ -39,7 +39,7 @@ require_once($CFG->libdir . '/completionlib.php');
* Class for unit testing core_completion/cm_completion_details.
*
* @package core_completion
* @copyright Jun Pataleta <jun@moodle.com>
* @copyright 2021 Jun Pataleta <jun@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class cm_completion_details_test extends advanced_testcase {