From 6a8c9d2cb3cedf171defb2c575957f20d0d0c7b5 Mon Sep 17 00:00:00 2001
From: Justus Dieckmann <justusdieckmann@wwu.de>
Date: Thu, 29 Apr 2021 23:29:03 +0200
Subject: [PATCH] Fix Codestyle

---
 classes/local/table/interaction_table.php |  4 ++--
 step/interactionlib.php                   | 10 +++++-----
 step/lib.php                              |  4 ++--
 trigger/lib.php                           |  6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/classes/local/table/interaction_table.php b/classes/local/table/interaction_table.php
index a2d3509..73055db 100644
--- a/classes/local/table/interaction_table.php
+++ b/classes/local/table/interaction_table.php
@@ -54,7 +54,7 @@ abstract class interaction_table extends \table_sql {
     /**
      * Initialises the columns of the table. Necessary since attention_table has extra column date.
      */
-    public abstract function init();
+    abstract public function init();
 
     /**
      * Render coursefullname column.
@@ -86,7 +86,7 @@ abstract class interaction_table extends \table_sql {
      * @param object $row Row data.
      * @return string Rendered tools html
      */
-    public abstract function col_tools($row);
+    abstract public function col_tools($row);
 
     /**
      * Render status column.
diff --git a/step/interactionlib.php b/step/interactionlib.php
index 9e27698..780314f 100644
--- a/step/interactionlib.php
+++ b/step/interactionlib.php
@@ -48,7 +48,7 @@ abstract class interactionlibbase {
      * Returns the capability a user has to have to make decisions for a specific course.
      * @return string capability string.
      */
-    public abstract function get_relevant_capability();
+    abstract public function get_relevant_capability();
 
     /**
      * Returns if only the courses of a step instance should be shown or all courses for the submodule.
@@ -66,7 +66,7 @@ abstract class interactionlibbase {
      * @param process $process process the action tools are requested for
      * @return array of action tools
      */
-    public abstract function get_action_tools($process);
+    abstract public function get_action_tools($process);
 
 
     /**
@@ -74,7 +74,7 @@ abstract class interactionlibbase {
      * @param process $process process the status message is requested for
      * @return string status message
      */
-    public abstract function get_status_message($process);
+    abstract public function get_status_message($process);
 
     /**
      * Returns the display name for the given action.
@@ -83,7 +83,7 @@ abstract class interactionlibbase {
      * @param string $user html-link with username as text that refers to the user profile.
      * @return string action display name
      */
-    public abstract function get_action_string($action, $user);
+    abstract public function get_action_string($action, $user);
 
     /**
      * Called when a user triggered an action for a process instance.
@@ -96,7 +96,7 @@ abstract class interactionlibbase {
      *      - noaction: the action is not defined for the step.
      *      - rollback: the step has finished and respective controller class should rollback the process.
      */
-    public abstract function handle_interaction($process, $step, $action = 'default');
+    abstract public function handle_interaction($process, $step, $action = 'default');
 
     /**
      * Returns the due date.
diff --git a/step/lib.php b/step/lib.php
index f544e9e..a21044f 100644
--- a/step/lib.php
+++ b/step/lib.php
@@ -51,7 +51,7 @@ abstract class libbase {
      * @param mixed $course to be processed.
      * @return step_response
      */
-    public abstract function process_course($processid, $instanceid, $course);
+    abstract public function process_course($processid, $instanceid, $course);
 
     /**
      * Processes the course in status waiting and returns a repsonse.
@@ -97,7 +97,7 @@ abstract class libbase {
      * The return value should be equivalent with the name of the subplugin folder.
      * @return string technical name of the subplugin
      */
-    public abstract function get_subpluginname();
+    abstract public function get_subpluginname();
 
     /**
      * Defines which settings each instance of the subplugin offers for the user to define.
diff --git a/trigger/lib.php b/trigger/lib.php
index f36d216..5ec5ad7 100644
--- a/trigger/lib.php
+++ b/trigger/lib.php
@@ -43,7 +43,7 @@ abstract class base {
      * The return value should be equivalent with the name of the subplugin folder.
      * @return string technical name of the subplugin
      */
-    public abstract function get_subpluginname();
+    abstract public function get_subpluginname();
 
     /**
      * Defines which settings each instance of the subplugin offers for the user to define.
@@ -94,7 +94,7 @@ abstract class base {
      * Specifies if the trigger is a manual or an automatic trigger.
      * @return boolean
      */
-    public abstract function is_manual_trigger();
+    abstract public function is_manual_trigger();
 
     /**
      * Returns the status message for the trigger.
@@ -123,7 +123,7 @@ abstract class base_automatic extends base {
      * @param int $triggerid Id of the trigger instance.
      * @return trigger_response
      */
-    public abstract function check_course($course, $triggerid);
+    abstract public function check_course($course, $triggerid);
 
     /**
      * Defines if the trigger subplugin is started manually or automatically.
-- 
GitLab