Skip to content

Commit 8dbf2fc

Browse files
author
Laur0r
authored
Merge pull request #78 from justusdieckmann/ci/github
Fix wrong function attribute ordering
2 parents efe2445 + e7c3aea commit 8dbf2fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

backup/moodle2/backup_moodleoverflow_activity_task.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected function define_my_steps() {
5757
*
5858
* @return string the content with the URLs encoded
5959
*/
60-
static public function encode_content_links($content) {
60+
public static function encode_content_links($content) {
6161
global $CFG;
6262

6363
$base = preg_quote($CFG->wwwroot, '/');

backup/moodle2/restore_moodleoverflow_activity_task.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function define_my_steps() {
5858
* Define the contents in the activity that must be
5959
* processed by the link decoder
6060
*/
61-
static public function define_decode_contents() {
61+
public static function define_decode_contents() {
6262
$contents = array();
6363

6464
$contents[] = new restore_decode_content('moodleoverflow', array('intro'), 'moodleoverflow');
@@ -71,7 +71,7 @@ static public function define_decode_contents() {
7171
* Define the decoding rules for links belonging
7272
* to the activity to be executed by the link decoder
7373
*/
74-
static public function define_decode_rules() {
74+
public static function define_decode_rules() {
7575
$rules = array();
7676

7777
$rules[] = new restore_decode_rule('MOODLEOVERFLOWVIEWBYID', '/mod/moodleoverflow/view.php?id=$1', 'course_module');
@@ -99,7 +99,7 @@ static public function define_decode_rules() {
9999
* moodleoverflow logs. It must return one array
100100
* of {@link restore_log_rule} objects
101101
*/
102-
static public function define_restore_log_rules() {
102+
public static function define_restore_log_rules() {
103103
$rules = array();
104104

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

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

0 commit comments

Comments
 (0)