From 0febe9a9a08986251087c22153afa3d58e98b9fb Mon Sep 17 00:00:00 2001 From: Justus Dieckmann <justusdieckmann@wwu.de> Date: Sun, 1 Aug 2021 23:14:54 +0200 Subject: [PATCH] CI: Refactor for new Coding style requirement, Cap Mariadb to 10.5 (MDL-72131) --- .github/workflows/moodle-ci.yml | 2 +- adminsettings.php | 2 +- classes/action.php | 2 +- classes/local/backup/backup_lifecycle_workflow.php | 2 +- classes/local/backup/restore_lifecycle_workflow.php | 2 +- classes/local/data/manual_trigger_tool.php | 2 +- classes/local/entity/process.php | 2 +- classes/local/entity/step_subplugin.php | 2 +- classes/local/entity/subplugin.php | 2 +- classes/local/entity/trigger_subplugin.php | 2 +- classes/local/entity/workflow.php | 2 +- classes/local/manager/backup_manager.php | 2 +- classes/local/table/active_automatic_workflows_table.php | 2 +- classes/local/table/active_manual_workflows_table.php | 2 +- classes/local/table/active_workflows_table.php | 2 +- classes/local/table/course_backups_table.php | 2 +- classes/local/table/deactivated_workflows_table.php | 2 +- classes/local/table/delayed_courses_table.php | 2 +- classes/local/table/interaction_attention_table.php | 2 +- classes/local/table/interaction_remaining_table.php | 2 +- classes/local/table/interaction_table.php | 2 +- classes/local/table/step_table.php | 2 +- classes/local/table/workflow_definition_table.php | 2 +- classes/local/table/workflow_table.php | 2 +- classes/plugininfo/lifecyclestep.php | 2 +- classes/plugininfo/lifecycletrigger.php | 2 +- classes/settings_type.php | 2 +- classes/task/lifecycle_cleanup_task.php | 2 +- classes/task/lifecycle_task.php | 2 +- classes/view_controller.php | 2 +- db/caches.php | 2 +- db/tasks.php | 2 +- db/upgrade.php | 2 +- deactivatedworkflows.php | 2 +- downloadbackup.php | 2 +- lang/de/tool_lifecycle.php | 2 +- lib.php | 2 +- renderer.php | 2 +- restore.php | 2 +- settings.php | 2 +- step/createbackup/version.php | 2 +- step/deletecourse/version.php | 2 +- step/duplicate/interactionlib.php | 2 +- step/duplicate/lang/de/lifecyclestep_duplicate.php | 2 +- step/duplicate/lang/en/lifecyclestep_duplicate.php | 2 +- step/duplicate/version.php | 2 +- step/email/interactionlib.php | 2 +- step/email/version.php | 2 +- step/interactionlib.php | 2 +- step/lib.php | 2 +- tests/backup_manager_test.php | 2 +- tests/manual_trigger_tools_test.php | 2 +- tests/privacy_test.php | 2 +- tests/process_status_message_test.php | 2 +- tests/settings_manager_test.php | 2 +- trigger/categories/tests/trigger_test.php | 2 +- trigger/categories/version.php | 2 +- trigger/delayedcourses/db/install.php | 2 +- trigger/delayedcourses/tests/trigger_test.php | 2 +- trigger/delayedcourses/version.php | 2 +- trigger/manual/lang/de/lifecycletrigger_manual.php | 2 +- trigger/manual/lang/en/lifecycletrigger_manual.php | 2 +- trigger/manual/version.php | 2 +- trigger/sitecourse/db/install.php | 2 +- trigger/sitecourse/tests/trigger_test.php | 2 +- trigger/sitecourse/version.php | 2 +- trigger/specificdate/version.php | 2 +- trigger/startdatedelay/tests/trigger_test.php | 2 +- trigger/startdatedelay/version.php | 2 +- workflowsettings.php | 2 +- 70 files changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index dd5bf99..ab3524e 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -112,7 +112,7 @@ jobs: steps: - name: Start MariaDB if: matrix.database == 'mariadb' - run: docker run -p 3306:3306 -e MYSQL_USER=root -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mariadb:10 + run: docker run -p 3306:3306 -e MYSQL_USER=root -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mariadb:10.5 - name: Start PostgreSQL if: matrix.database == 'pgsql' diff --git a/adminsettings.php b/adminsettings.php index cbbc36a..3a5f89b 100644 --- a/adminsettings.php +++ b/adminsettings.php @@ -33,4 +33,4 @@ $adminsettings = new tool_lifecycle\admin_settings(); // Execute the controller. $adminsettings->execute(optional_param('action', null, PARAM_TEXT), - optional_param('workflowid', null, PARAM_INT)); \ No newline at end of file + optional_param('workflowid', null, PARAM_INT)); diff --git a/classes/action.php b/classes/action.php index 85150f3..fe93c00 100644 --- a/classes/action.php +++ b/classes/action.php @@ -71,4 +71,4 @@ class action { /** @var string Abort a workflow. */ const WORKFLOW_ABORT = 'workflow_instance_abort'; -} \ No newline at end of file +} diff --git a/classes/local/backup/backup_lifecycle_workflow.php b/classes/local/backup/backup_lifecycle_workflow.php index 81eb2d0..4505fa0 100644 --- a/classes/local/backup/backup_lifecycle_workflow.php +++ b/classes/local/backup/backup_lifecycle_workflow.php @@ -161,4 +161,4 @@ class backup_lifecycle_workflow { public function get_temp_filename() { return $this->tempfilename; } -} \ No newline at end of file +} diff --git a/classes/local/backup/restore_lifecycle_workflow.php b/classes/local/backup/restore_lifecycle_workflow.php index 39d5470..16a4141 100644 --- a/classes/local/backup/restore_lifecycle_workflow.php +++ b/classes/local/backup/restore_lifecycle_workflow.php @@ -215,4 +215,4 @@ class restore_lifecycle_workflow { } } } -} \ No newline at end of file +} diff --git a/classes/local/data/manual_trigger_tool.php b/classes/local/data/manual_trigger_tool.php index 39126fa..48ffa42 100644 --- a/classes/local/data/manual_trigger_tool.php +++ b/classes/local/data/manual_trigger_tool.php @@ -62,4 +62,4 @@ class manual_trigger_tool implements renderable { $this->capability = $capability; } -} \ No newline at end of file +} diff --git a/classes/local/entity/process.php b/classes/local/entity/process.php index d77f2f9..c05fea0 100644 --- a/classes/local/entity/process.php +++ b/classes/local/entity/process.php @@ -106,4 +106,4 @@ class process { return $instance; } -} \ No newline at end of file +} diff --git a/classes/local/entity/step_subplugin.php b/classes/local/entity/step_subplugin.php index 81cca5b..e50ecde 100644 --- a/classes/local/entity/step_subplugin.php +++ b/classes/local/entity/step_subplugin.php @@ -61,4 +61,4 @@ class step_subplugin extends subplugin { return $instance; } -} \ No newline at end of file +} diff --git a/classes/local/entity/subplugin.php b/classes/local/entity/subplugin.php index d01510b..15e3809 100644 --- a/classes/local/entity/subplugin.php +++ b/classes/local/entity/subplugin.php @@ -64,4 +64,4 @@ abstract class subplugin{ $this->id = $id; } -} \ No newline at end of file +} diff --git a/classes/local/entity/trigger_subplugin.php b/classes/local/entity/trigger_subplugin.php index ddcbf77..d4c98fa 100644 --- a/classes/local/entity/trigger_subplugin.php +++ b/classes/local/entity/trigger_subplugin.php @@ -61,4 +61,4 @@ class trigger_subplugin extends subplugin{ return $instance; } -} \ No newline at end of file +} diff --git a/classes/local/entity/workflow.php b/classes/local/entity/workflow.php index eb69247..9be4f03 100644 --- a/classes/local/entity/workflow.php +++ b/classes/local/entity/workflow.php @@ -156,4 +156,4 @@ class workflow { return $instance; } -} \ No newline at end of file +} diff --git a/classes/local/manager/backup_manager.php b/classes/local/manager/backup_manager.php index e239bdc..daf5ae9 100644 --- a/classes/local/manager/backup_manager.php +++ b/classes/local/manager/backup_manager.php @@ -139,4 +139,4 @@ class backup_manager { redirect($restoreurl); } -} \ No newline at end of file +} diff --git a/classes/local/table/active_automatic_workflows_table.php b/classes/local/table/active_automatic_workflows_table.php index 58b4203..097a3fc 100644 --- a/classes/local/table/active_automatic_workflows_table.php +++ b/classes/local/table/active_automatic_workflows_table.php @@ -110,4 +110,4 @@ class active_automatic_workflows_table extends active_workflows_table { return $output; } -} \ No newline at end of file +} diff --git a/classes/local/table/active_manual_workflows_table.php b/classes/local/table/active_manual_workflows_table.php index 5452a92..90c95e5 100644 --- a/classes/local/table/active_manual_workflows_table.php +++ b/classes/local/table/active_manual_workflows_table.php @@ -77,4 +77,4 @@ class active_manual_workflows_table extends active_workflows_table { $this->setup(); } -} \ No newline at end of file +} diff --git a/classes/local/table/active_workflows_table.php b/classes/local/table/active_workflows_table.php index d3f35c4..9a85218 100644 --- a/classes/local/table/active_workflows_table.php +++ b/classes/local/table/active_workflows_table.php @@ -98,4 +98,4 @@ abstract class active_workflows_table extends workflow_table { return $output; } -} \ No newline at end of file +} diff --git a/classes/local/table/course_backups_table.php b/classes/local/table/course_backups_table.php index 6b65441..678e3d1 100644 --- a/classes/local/table/course_backups_table.php +++ b/classes/local/table/course_backups_table.php @@ -160,4 +160,4 @@ class course_backups_table extends \table_sql { get_string('restore', 'tool_lifecycle') ); } -} \ No newline at end of file +} diff --git a/classes/local/table/deactivated_workflows_table.php b/classes/local/table/deactivated_workflows_table.php index d16ce42..54ee0eb 100644 --- a/classes/local/table/deactivated_workflows_table.php +++ b/classes/local/table/deactivated_workflows_table.php @@ -131,4 +131,4 @@ class deactivated_workflows_table extends workflow_table { return $output; } -} \ No newline at end of file +} diff --git a/classes/local/table/delayed_courses_table.php b/classes/local/table/delayed_courses_table.php index a201fad..fe2c1e9 100644 --- a/classes/local/table/delayed_courses_table.php +++ b/classes/local/table/delayed_courses_table.php @@ -247,4 +247,4 @@ class delayed_courses_table extends \table_sql { get_string('delete_delay', 'tool_lifecycle')); return $OUTPUT->render($button); } -} \ No newline at end of file +} diff --git a/classes/local/table/interaction_attention_table.php b/classes/local/table/interaction_attention_table.php index 3375a57..acff10b 100644 --- a/classes/local/table/interaction_attention_table.php +++ b/classes/local/table/interaction_attention_table.php @@ -144,4 +144,4 @@ class interaction_attention_table extends interaction_table { ); return $OUTPUT->render($button); } -} \ No newline at end of file +} diff --git a/classes/local/table/interaction_remaining_table.php b/classes/local/table/interaction_remaining_table.php index 95ee55d..2f10271 100644 --- a/classes/local/table/interaction_remaining_table.php +++ b/classes/local/table/interaction_remaining_table.php @@ -194,4 +194,4 @@ class interaction_remaining_table extends interaction_table { return userdate($row->lastmodified, $dateformat); } -} \ No newline at end of file +} diff --git a/classes/local/table/interaction_table.php b/classes/local/table/interaction_table.php index 73055db..60d54c9 100644 --- a/classes/local/table/interaction_table.php +++ b/classes/local/table/interaction_table.php @@ -120,4 +120,4 @@ abstract class interaction_table extends \table_sql { echo $OUTPUT->box(get_string('nocoursestodisplay', 'tool_lifecycle')); } -} \ No newline at end of file +} diff --git a/classes/local/table/step_table.php b/classes/local/table/step_table.php index b55a9c0..ef259ec 100644 --- a/classes/local/table/step_table.php +++ b/classes/local/table/step_table.php @@ -289,4 +289,4 @@ class step_table extends \table_sql { null, array('title' => $alt)) . ' '; } -} \ No newline at end of file +} diff --git a/classes/local/table/workflow_definition_table.php b/classes/local/table/workflow_definition_table.php index 5666037..8a13245 100644 --- a/classes/local/table/workflow_definition_table.php +++ b/classes/local/table/workflow_definition_table.php @@ -147,4 +147,4 @@ class workflow_definition_table extends workflow_table { return $output; } -} \ No newline at end of file +} diff --git a/classes/local/table/workflow_table.php b/classes/local/table/workflow_table.php index 8634d38..7db075c 100644 --- a/classes/local/table/workflow_table.php +++ b/classes/local/table/workflow_table.php @@ -162,4 +162,4 @@ abstract class workflow_table extends \table_sql { null , array('title' => $alt)) . ' '; } -} \ No newline at end of file +} diff --git a/classes/plugininfo/lifecyclestep.php b/classes/plugininfo/lifecyclestep.php index 59ff802..d8cf9b0 100644 --- a/classes/plugininfo/lifecyclestep.php +++ b/classes/plugininfo/lifecyclestep.php @@ -68,4 +68,4 @@ class lifecyclestep extends base { step_manager::remove_all_instances($this->name); return true; } -} \ No newline at end of file +} diff --git a/classes/plugininfo/lifecycletrigger.php b/classes/plugininfo/lifecycletrigger.php index ba68642..2258f64 100644 --- a/classes/plugininfo/lifecycletrigger.php +++ b/classes/plugininfo/lifecycletrigger.php @@ -85,4 +85,4 @@ class lifecycletrigger extends base { } return true; } -} \ No newline at end of file +} diff --git a/classes/settings_type.php b/classes/settings_type.php index 245630b..d63e340 100644 --- a/classes/settings_type.php +++ b/classes/settings_type.php @@ -36,4 +36,4 @@ class settings_type { const STEP = 'step'; /** @var string Represents the type for a trigger subplugin. */ const TRIGGER = 'trigger'; -} \ No newline at end of file +} diff --git a/classes/task/lifecycle_cleanup_task.php b/classes/task/lifecycle_cleanup_task.php index 7a8f6f9..5c31f11 100644 --- a/classes/task/lifecycle_cleanup_task.php +++ b/classes/task/lifecycle_cleanup_task.php @@ -53,4 +53,4 @@ class lifecycle_cleanup_task extends \core\task\scheduled_task { $DB->delete_records_select('tool_lifecycle_delayed', 'delayeduntil <= :time', array('time' => $twomonthago)); $DB->delete_records_select('tool_lifecycle_delayed_workf', 'delayeduntil <= :time', array('time' => $twomonthago)); } -} \ No newline at end of file +} diff --git a/classes/task/lifecycle_task.php b/classes/task/lifecycle_task.php index d956865..57fe110 100644 --- a/classes/task/lifecycle_task.php +++ b/classes/task/lifecycle_task.php @@ -67,4 +67,4 @@ class lifecycle_task extends \core\task\scheduled_task { $steplibs[$id]->post_processing_bulk_operation(); } } -} \ No newline at end of file +} diff --git a/classes/view_controller.php b/classes/view_controller.php index 5e1d808..32e297d 100644 --- a/classes/view_controller.php +++ b/classes/view_controller.php @@ -169,4 +169,4 @@ class view_controller { redirect($PAGE->url, get_string('manual_trigger_success', 'tool_lifecycle'), null, notification::SUCCESS); } } -} \ No newline at end of file +} diff --git a/db/caches.php b/db/caches.php index e68e32e..0daffb4 100644 --- a/db/caches.php +++ b/db/caches.php @@ -28,4 +28,4 @@ $definitions = array( 'mformdata' => array( 'mode' => cache_store::MODE_SESSION ) -); \ No newline at end of file +); diff --git a/db/tasks.php b/db/tasks.php index 227744d..f708e82 100644 --- a/db/tasks.php +++ b/db/tasks.php @@ -45,4 +45,4 @@ $tasks = array( 'month' => '*', 'dayofweek' => '0', ) -); \ No newline at end of file +); diff --git a/db/upgrade.php b/db/upgrade.php index 6de05fb..1e5a172 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -447,4 +447,4 @@ function xmldb_tool_lifecycle_upgrade($oldversion) { } return true; -} \ No newline at end of file +} diff --git a/deactivatedworkflows.php b/deactivatedworkflows.php index 8ce81b8..96bde64 100644 --- a/deactivatedworkflows.php +++ b/deactivatedworkflows.php @@ -57,4 +57,4 @@ $surl = new \moodle_url('/admin/tool/lifecycle/adminsettings.php', array('sesskey' => sesskey())); echo \html_writer::link($surl, get_string('active_workflows_list', 'tool_lifecycle')); -echo $renderer->footer(); \ No newline at end of file +echo $renderer->footer(); diff --git a/downloadbackup.php b/downloadbackup.php index d6ee0ce..c2877e7 100644 --- a/downloadbackup.php +++ b/downloadbackup.php @@ -37,4 +37,4 @@ if (!file_exists($source)) { header("Content-Type: application/zip"); header("Content-Disposition: attachment; filename=\"backup-$backuprecord->backupfile\""); -readfile($source); \ No newline at end of file +readfile($source); diff --git a/lang/de/tool_lifecycle.php b/lang/de/tool_lifecycle.php index 55958c1..5ce7b49 100644 --- a/lang/de/tool_lifecycle.php +++ b/lang/de/tool_lifecycle.php @@ -174,4 +174,4 @@ $string['restore_trigger_does_not_exist'] = 'Der Trigger {$a} ist nicht installi $string['process_triggered_event'] = 'Ein Prozess wurde ausgelöst'; $string['process_proceeded_event'] = 'Ein Prozess wurde fortgeführt'; -$string['process_rollback_event'] = 'Ein Prozess wurde zurückgesetzt'; \ No newline at end of file +$string['process_rollback_event'] = 'Ein Prozess wurde zurückgesetzt'; diff --git a/lib.php b/lib.php index 4e5cabd..15820fb 100644 --- a/lib.php +++ b/lib.php @@ -79,4 +79,4 @@ function tool_lifecycle_get_fontawesome_icon_map() { 'tool_lifecycle:icon' => 'fa-recycle', 'tool_lifecycle:t/disable' => 'fa-hand-paper-o', ]; -} \ No newline at end of file +} diff --git a/renderer.php b/renderer.php index b3dda1a..1b1ee40 100644 --- a/renderer.php +++ b/renderer.php @@ -68,4 +68,4 @@ class tool_lifecycle_renderer extends plugin_renderer_base { $this->footer(); } -} \ No newline at end of file +} diff --git a/restore.php b/restore.php index 55b276c..48551f0 100644 --- a/restore.php +++ b/restore.php @@ -31,4 +31,4 @@ require_capability('moodle/site:config', context_system::instance()); $backupid = required_param('backupid', PARAM_INT); -backup_manager::restore_course_backup($backupid); \ No newline at end of file +backup_manager::restore_course_backup($backupid); diff --git a/settings.php b/settings.php index c2a265c..71a26f8 100644 --- a/settings.php +++ b/settings.php @@ -69,4 +69,4 @@ if ($hassiteconfig) { include($settingsfile); } } -} \ No newline at end of file +} diff --git a/step/createbackup/version.php b/step/createbackup/version.php index 9c64de5..bc3d4ad 100644 --- a/step/createbackup/version.php +++ b/step/createbackup/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2019052900; -$plugin->component = 'lifecyclestep_createbackup'; \ No newline at end of file +$plugin->component = 'lifecyclestep_createbackup'; diff --git a/step/deletecourse/version.php b/step/deletecourse/version.php index d22eb27..1bccaad 100644 --- a/step/deletecourse/version.php +++ b/step/deletecourse/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2018122300; -$plugin->component = 'lifecyclestep_deletecourse'; \ No newline at end of file +$plugin->component = 'lifecyclestep_deletecourse'; diff --git a/step/duplicate/interactionlib.php b/step/duplicate/interactionlib.php index f3d04ac..f8d389f 100644 --- a/step/duplicate/interactionlib.php +++ b/step/duplicate/interactionlib.php @@ -161,4 +161,4 @@ class interactionduplicate extends interactionlibbase { public function get_action_string($action, $user) { return get_string('action_new_course_data', 'lifecyclestep_duplicate', $user); } -} \ No newline at end of file +} diff --git a/step/duplicate/lang/de/lifecyclestep_duplicate.php b/step/duplicate/lang/de/lifecyclestep_duplicate.php index 448883c..1ba8f7c 100644 --- a/step/duplicate/lang/de/lifecyclestep_duplicate.php +++ b/step/duplicate/lang/de/lifecyclestep_duplicate.php @@ -31,4 +31,4 @@ $string['status_message_duplication'] = 'Duplizierter Kurs wird bald verfügbar $string['status_message_form'] = 'Zusätzliche Informationen benötigt'; $string['action_new_course_data'] = '{$a} hat neuen Kursnamen eingegeben'; -$string['duplicate:enterdata'] = 'Daten für Kursduplikation eingeben'; \ No newline at end of file +$string['duplicate:enterdata'] = 'Daten für Kursduplikation eingeben'; diff --git a/step/duplicate/lang/en/lifecyclestep_duplicate.php b/step/duplicate/lang/en/lifecyclestep_duplicate.php index 3eb2e06..4639947 100644 --- a/step/duplicate/lang/en/lifecyclestep_duplicate.php +++ b/step/duplicate/lang/en/lifecyclestep_duplicate.php @@ -31,4 +31,4 @@ $string['status_message_duplication'] = 'Duplicated course will be available sho $string['status_message_form'] = 'Additional information required'; $string['action_new_course_data'] = '{$a} supplied new course name'; -$string['duplicate:enterdata'] = 'Enter data for course duplication'; \ No newline at end of file +$string['duplicate:enterdata'] = 'Enter data for course duplication'; diff --git a/step/duplicate/version.php b/step/duplicate/version.php index 41bdba1..7498d0d 100644 --- a/step/duplicate/version.php +++ b/step/duplicate/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2019070200; -$plugin->component = 'lifecyclestep_duplicate'; \ No newline at end of file +$plugin->component = 'lifecyclestep_duplicate'; diff --git a/step/email/interactionlib.php b/step/email/interactionlib.php index 9124cff..1085e12 100644 --- a/step/email/interactionlib.php +++ b/step/email/interactionlib.php @@ -141,4 +141,4 @@ class interactionemail extends interactionlibbase { public function get_action_string($action, $user) { return get_string('action_prevented_deletion', 'lifecyclestep_email', $user); } -} \ No newline at end of file +} diff --git a/step/email/version.php b/step/email/version.php index 4de3b26..5b8d20f 100644 --- a/step/email/version.php +++ b/step/email/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2019070200; -$plugin->component = 'lifecyclestep_email'; \ No newline at end of file +$plugin->component = 'lifecyclestep_email'; diff --git a/step/interactionlib.php b/step/interactionlib.php index 780314f..0958cb1 100644 --- a/step/interactionlib.php +++ b/step/interactionlib.php @@ -107,4 +107,4 @@ abstract class interactionlibbase { public function get_due_date($processid, $stepid) { return null; } -} \ No newline at end of file +} diff --git a/step/lib.php b/step/lib.php index a21044f..f5cbb9f 100644 --- a/step/lib.php +++ b/step/lib.php @@ -159,4 +159,4 @@ class instance_setting { $this->paramtype = $paramtype; } -} \ No newline at end of file +} diff --git a/tests/backup_manager_test.php b/tests/backup_manager_test.php index 6e09ec2..ab27a38 100644 --- a/tests/backup_manager_test.php +++ b/tests/backup_manager_test.php @@ -74,4 +74,4 @@ class tool_lifecycle_backup_manager_testcase extends \advanced_testcase { } -} \ No newline at end of file +} diff --git a/tests/manual_trigger_tools_test.php b/tests/manual_trigger_tools_test.php index c609dde..aad0a02 100644 --- a/tests/manual_trigger_tools_test.php +++ b/tests/manual_trigger_tools_test.php @@ -140,4 +140,4 @@ class tool_lifecycle_manual_trigger_tools_testcase extends \advanced_testcase { $this->assertTrue($found); } -} \ No newline at end of file +} diff --git a/tests/privacy_test.php b/tests/privacy_test.php index 07aada6..9176f2b 100644 --- a/tests/privacy_test.php +++ b/tests/privacy_test.php @@ -235,4 +235,4 @@ class tool_lifecycle_privacy_test extends provider_testcase { $this->assertEquals(1, $DB->count_records_select('tool_lifecycle_action_log', "userid = -1")); } -} \ No newline at end of file +} diff --git a/tests/process_status_message_test.php b/tests/process_status_message_test.php index b7b313f..e55fbe9 100644 --- a/tests/process_status_message_test.php +++ b/tests/process_status_message_test.php @@ -89,4 +89,4 @@ class tool_lifecycle_process_status_message_testcase extends \advanced_testcase $message = \tool_lifecycle\local\manager\interaction_manager::get_process_status_message($process->id); $this->assertEquals(get_string('status_message_requiresattention', 'lifecyclestep_email'), $message); } -} \ No newline at end of file +} diff --git a/tests/settings_manager_test.php b/tests/settings_manager_test.php index 204dd41..4444e33 100644 --- a/tests/settings_manager_test.php +++ b/tests/settings_manager_test.php @@ -119,4 +119,4 @@ class tool_lifecycle_settings_manager_testcase extends \advanced_testcase { $this->assertEmpty($settingstrigger); } -} \ No newline at end of file +} diff --git a/trigger/categories/tests/trigger_test.php b/trigger/categories/tests/trigger_test.php index 4012ff6..79f9e5f 100644 --- a/trigger/categories/tests/trigger_test.php +++ b/trigger/categories/tests/trigger_test.php @@ -152,4 +152,4 @@ class tool_lifecycle_trigger_categories_testcase extends \advanced_testcase { $this->assertTrue($found, 'The course should not have been excluded by the trigger'); $recordset->close(); } -} \ No newline at end of file +} diff --git a/trigger/categories/version.php b/trigger/categories/version.php index ac5c1e5..d069705 100644 --- a/trigger/categories/version.php +++ b/trigger/categories/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2017050901; -$plugin->component = 'lifecycletrigger_categories'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_categories'; diff --git a/trigger/delayedcourses/db/install.php b/trigger/delayedcourses/db/install.php index a107f77..00f52e2 100644 --- a/trigger/delayedcourses/db/install.php +++ b/trigger/delayedcourses/db/install.php @@ -31,4 +31,4 @@ defined('MOODLE_INTERNAL') || die(); */ function xmldb_lifecycletrigger_delayedcourses_install() { trigger_manager::register_workflow('delayedcourses'); -} \ No newline at end of file +} diff --git a/trigger/delayedcourses/tests/trigger_test.php b/trigger/delayedcourses/tests/trigger_test.php index 6238981..fcb5e7d 100644 --- a/trigger/delayedcourses/tests/trigger_test.php +++ b/trigger/delayedcourses/tests/trigger_test.php @@ -156,4 +156,4 @@ class tool_lifecycle_trigger_delayedcourses_testcase extends \advanced_testcase $recordset->close(); $this->assertTrue($found, 'The course should have passed through since it should be delay'); } -} \ No newline at end of file +} diff --git a/trigger/delayedcourses/version.php b/trigger/delayedcourses/version.php index 5b1fa5e..da36efe 100644 --- a/trigger/delayedcourses/version.php +++ b/trigger/delayedcourses/version.php @@ -26,4 +26,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2017061900; -$plugin->component = 'lifecycletrigger_delayedcourses'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_delayedcourses'; diff --git a/trigger/manual/lang/de/lifecycletrigger_manual.php b/trigger/manual/lang/de/lifecycletrigger_manual.php index efde6b1..af6f1d1 100644 --- a/trigger/manual/lang/de/lifecycletrigger_manual.php +++ b/trigger/manual/lang/de/lifecycletrigger_manual.php @@ -28,4 +28,4 @@ $string['setting_capability_help'] = 'Die Moodle-Berechtigung, die ein Nutzer be $string['setting_icon'] = 'Icon'; $string['setting_icon_help'] = 'Das Moodle-Icon das dem Nutzer für diesen Trigger angezeigt wird, z.B. "core/tick". Die ganze Liste möglicher Icons kann in der Moodle-Dokumentation gefunden werden.'; $string['setting_displayname'] = 'Aktionsname'; -$string['setting_displayname_help'] = 'Der Name für die Triggeraktion, der dem Nutzer angezeigt wird.'; \ No newline at end of file +$string['setting_displayname_help'] = 'Der Name für die Triggeraktion, der dem Nutzer angezeigt wird.'; diff --git a/trigger/manual/lang/en/lifecycletrigger_manual.php b/trigger/manual/lang/en/lifecycletrigger_manual.php index 0185529..249ef5e 100644 --- a/trigger/manual/lang/en/lifecycletrigger_manual.php +++ b/trigger/manual/lang/en/lifecycletrigger_manual.php @@ -28,4 +28,4 @@ $string['setting_capability_help'] = 'The Moodle capability needed to see and in $string['setting_icon'] = 'Icon'; $string['setting_icon_help'] = 'The Moodle icon to be showed to the user for this trigger, e.g. "core/tick". A full list of possible icons can be found at Moodle documentation.'; $string['setting_displayname'] = 'Action name'; -$string['setting_displayname_help'] = 'A name for the trigger action displayed to the user.'; \ No newline at end of file +$string['setting_displayname_help'] = 'A name for the trigger action displayed to the user.'; diff --git a/trigger/manual/version.php b/trigger/manual/version.php index eba9484..a775cf8 100644 --- a/trigger/manual/version.php +++ b/trigger/manual/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2018022000; -$plugin->component = 'lifecycletrigger_manual'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_manual'; diff --git a/trigger/sitecourse/db/install.php b/trigger/sitecourse/db/install.php index bb52925..ef92e5e 100644 --- a/trigger/sitecourse/db/install.php +++ b/trigger/sitecourse/db/install.php @@ -30,4 +30,4 @@ defined('MOODLE_INTERNAL') || die(); */ function xmldb_lifecycletrigger_sitecourse_install() { trigger_manager::register_workflow('sitecourse'); -} \ No newline at end of file +} diff --git a/trigger/sitecourse/tests/trigger_test.php b/trigger/sitecourse/tests/trigger_test.php index d9babbb..d5f602b 100644 --- a/trigger/sitecourse/tests/trigger_test.php +++ b/trigger/sitecourse/tests/trigger_test.php @@ -81,4 +81,4 @@ class tool_lifecycle_trigger_sitecourse_testcase extends \advanced_testcase { $this->assertEquals($response, trigger_response::next()); } -} \ No newline at end of file +} diff --git a/trigger/sitecourse/version.php b/trigger/sitecourse/version.php index 1e4fcac..388b882 100644 --- a/trigger/sitecourse/version.php +++ b/trigger/sitecourse/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2017050900; -$plugin->component = 'lifecycletrigger_sitecourse'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_sitecourse'; diff --git a/trigger/specificdate/version.php b/trigger/specificdate/version.php index a7f69e7..9ef18a4 100644 --- a/trigger/specificdate/version.php +++ b/trigger/specificdate/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2018101000; -$plugin->component = 'lifecycletrigger_specificdate'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_specificdate'; diff --git a/trigger/startdatedelay/tests/trigger_test.php b/trigger/startdatedelay/tests/trigger_test.php index 04ac2ae..7466dd9 100644 --- a/trigger/startdatedelay/tests/trigger_test.php +++ b/trigger/startdatedelay/tests/trigger_test.php @@ -91,4 +91,4 @@ class tool_lifecycle_trigger_startdatedelay_testcase extends \advanced_testcase } $this->assertTrue($found, 'The course should have been triggered'); } -} \ No newline at end of file +} diff --git a/trigger/startdatedelay/version.php b/trigger/startdatedelay/version.php index c59c13c..422037f 100644 --- a/trigger/startdatedelay/version.php +++ b/trigger/startdatedelay/version.php @@ -25,4 +25,4 @@ defined('MOODLE_INTERNAL') || die; $plugin->version = 2017050901; -$plugin->component = 'lifecycletrigger_startdatedelay'; \ No newline at end of file +$plugin->component = 'lifecycletrigger_startdatedelay'; diff --git a/workflowsettings.php b/workflowsettings.php index 27321b6..60c09ed 100644 --- a/workflowsettings.php +++ b/workflowsettings.php @@ -42,4 +42,4 @@ $workflowsettings = new tool_lifecycle\workflow_settings($workflowid); // Execute the controller. $subpluginid = optional_param('subplugin', null, PARAM_INT); -$workflowsettings->execute(optional_param('action', null, PARAM_TEXT), $subpluginid, $workflowid); \ No newline at end of file +$workflowsettings->execute(optional_param('action', null, PARAM_TEXT), $subpluginid, $workflowid); -- GitLab