From 46be09735440c7ffe0cd74abfd4904232eb22a89 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 25 Mar 2025 14:59:14 +0000
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20refactor(archive):=20streamline=20s?=
 =?UTF-8?q?ave=20method=20by=20removing=20unnecessary=20whitespace=20and?=
 =?UTF-8?q?=20improving=20readability?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 archive/workflow/class_archiveTask.inc | 28 +++++++++++++-------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/archive/workflow/class_archiveTask.inc b/archive/workflow/class_archiveTask.inc
index 011c51b57e..e99cef82b4 100644
--- a/archive/workflow/class_archiveTask.inc
+++ b/archive/workflow/class_archiveTask.inc
@@ -151,22 +151,22 @@ class archiveTask extends simplePlugin
   function save (): array
   {
       // Check if the SupAnn Account Status plugin is available (It should not happen as attributes verification will trigger errors before save)
-      if (!class_available('supannAccountStatus')) {
-          msg_dialog::display(
-              _('Error'),
-              _('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'),
-              ERROR_DIALOG
-          );
-          return []; // Return an empty array to indicate no action was taken
-      }
-  
+    if (!class_available('supannAccountStatus')) {
+        msg_dialog::display(
+            _('Error'),
+            _('The SupAnn Account Status plugin is not activated. This task cannot be saved or executed without it.'),
+            ERROR_DIALOG
+        );
+        return []; // Return an empty array to indicate no action was taken
+    }
+
       // Verify if this task has to be executed upon saving
       $execTasks = $this->parent->getBaseObject()->fdSubTasksActivation ?? NULL;
-  
-      if ($execTasks) {
-          $this->generateSlaveTasks();
-      }
-  
+
+    if ($execTasks) {
+        $this->generateSlaveTasks();
+    }
+
       return parent::save();
   }
 }
\ No newline at end of file
-- 
GitLab