From 0af5c9ae91fe3af7f297873d745d2ee23a40c86d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jan 2021 17:45:17 +0100 Subject: [PATCH] Fix phpcs --- htdocs/core/class/commonobject.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index d701da55d8f..1462fa327eb 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -3663,6 +3663,7 @@ abstract class CommonObject /** * Function used to get an array with all items linked to an object id in association table + * * @param int $fk_object_where id of object we need to get linked items * @param string $field_select name of field we need to get a list * @param string $field_where name of field of object we need to get linked items @@ -3671,7 +3672,7 @@ abstract class CommonObject */ static public function getAllItemsLinkedByObjectID($fk_object_where, $field_select, $field_where, $table_element) { - if(empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1; + if (empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1; global $db; @@ -3686,11 +3687,11 @@ abstract class CommonObject } return $TRes; - } /** * Function used to remove all items linked to an object id in association table + * * @param int $fk_object_where id of object we need to remove linked items * @param string $field_where name of field of object we need to delete linked items * @param string $table_element name of association table @@ -3698,7 +3699,7 @@ abstract class CommonObject */ static public function deleteAllItemsLinkedByObjectID($fk_object_where, $field_where, $table_element) { - if(empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1; + if (empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1; global $db; @@ -3708,7 +3709,6 @@ abstract class CommonObject if (empty($resql)) return 0; return 1; - } /**