From f0c0fd95f3352e885b966cd7f4c30f0f9912507a Mon Sep 17 00:00:00 2001 From: NinaHerrmann Date: Tue, 25 Jun 2024 09:49:21 +0200 Subject: [PATCH] fix moodle code checker issues --- classes/local/backup/restore_lifecycle_workflow.php | 2 +- step/email/tests/privacy/provider_test.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/local/backup/restore_lifecycle_workflow.php b/classes/local/backup/restore_lifecycle_workflow.php index 5e9b1fe9..cd05dba4 100644 --- a/classes/local/backup/restore_lifecycle_workflow.php +++ b/classes/local/backup/restore_lifecycle_workflow.php @@ -87,7 +87,7 @@ public function execute(bool $force = false) { $this->check_subplugin_validity(); if (empty($this->errors) || $force) { // If all loaded data is valid, the new workflow and the steps can be stored in the database. - // If we force the import, we empty the errors; + // If we force the import, we empty the errors. $this->errors = []; $this->persist(); } diff --git a/step/email/tests/privacy/provider_test.php b/step/email/tests/privacy/provider_test.php index fcb8311e..4ba4da1e 100644 --- a/step/email/tests/privacy/provider_test.php +++ b/step/email/tests/privacy/provider_test.php @@ -13,6 +13,7 @@ // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . + /** * Unit tests for the lifecyclestep_email implementation of the privacy API. * @@ -21,6 +22,7 @@ * @author Philipp Memmel * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ + namespace lifecyclestep_email\privacy; use context_course;