Skip to content

Commit

Permalink
Merge pull request #78 from justusdieckmann/ci/github
Browse files Browse the repository at this point in the history
Fix wrong function attribute ordering
  • Loading branch information
Laur0r committed May 3, 2021
2 parents efe2445 + e7c3aea commit 8dbf2fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function define_my_steps() {
*
* @return string the content with the URLs encoded
*/
static public function encode_content_links($content) {
public static function encode_content_links($content) {
global $CFG;

$base = preg_quote($CFG->wwwroot, '/');
Expand Down
8 changes: 4 additions & 4 deletions backup/moodle2/restore_moodleoverflow_activity_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function define_my_steps() {
* 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('moodleoverflow', array('intro'), 'moodleoverflow');
Expand All @@ -71,7 +71,7 @@ static public function define_decode_contents() {
* 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('MOODLEOVERFLOWVIEWBYID', '/mod/moodleoverflow/view.php?id=$1', 'course_module');
Expand Down Expand Up @@ -99,7 +99,7 @@ static public function define_decode_rules() {
* moodleoverflow logs. It must return one array
* of {@link restore_log_rule} objects
*/
static public function define_restore_log_rules() {
public static function define_restore_log_rules() {
$rules = array();

$rules[] = new restore_log_rule('moodleoverflow', 'add',
Expand Down Expand Up @@ -159,7 +159,7 @@ static public function define_restore_log_rules() {
* by the restore final task, but are defined here at
* activity level. All them are rules not linked to any module instance (cmid = 0)
*/
static public function define_restore_log_rules_for_course() {
public static function define_restore_log_rules_for_course() {
$rules = array();

$rules[] = new restore_log_rule('moodleoverflow', 'view all', 'index.php?id={course}', null);
Expand Down

0 comments on commit 8dbf2fc

Please sign in to comment.