Fix Moodle Code Checker complaints
This commit is contained in:
parent
9f320984c6
commit
69a3436faa
4 changed files with 7 additions and 7 deletions
|
@ -56,7 +56,7 @@ class backup_customcert_activity_task extends backup_activity_task {
|
|||
* @param string $content
|
||||
* @return mixed|string
|
||||
*/
|
||||
static public function encode_content_links($content) {
|
||||
public static function encode_content_links($content) {
|
||||
global $CFG;
|
||||
|
||||
$base = preg_quote($CFG->wwwroot, "/");
|
||||
|
|
|
@ -53,7 +53,7 @@ class restore_customcert_activity_task extends restore_activity_task {
|
|||
/**
|
||||
* Define the contents in the activity that must be processed by the link decoder.
|
||||
*/
|
||||
static public function define_decode_contents() {
|
||||
public static function define_decode_contents() {
|
||||
$contents = array();
|
||||
|
||||
$contents[] = new restore_decode_content('customcert', array('intro'), 'customcert');
|
||||
|
@ -64,7 +64,7 @@ class restore_customcert_activity_task extends restore_activity_task {
|
|||
/**
|
||||
* Define the decoding rules for links belonging to the activity to be executed by the link decoder.
|
||||
*/
|
||||
static public function define_decode_rules() {
|
||||
public static function define_decode_rules() {
|
||||
$rules = array();
|
||||
|
||||
$rules[] = new restore_decode_rule('CUSTOMCERTVIEWBYID', '/mod/customcert/view.php?id=$1', 'course_module');
|
||||
|
@ -80,7 +80,7 @@ class restore_customcert_activity_task extends restore_activity_task {
|
|||
*
|
||||
* @return array the restore log rules
|
||||
*/
|
||||
static public function define_restore_log_rules() {
|
||||
public static function define_restore_log_rules() {
|
||||
$rules = array();
|
||||
|
||||
$rules[] = new restore_log_rule('customcert', 'add', 'view.php?id={course_module}', '{customcert}');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue