From f9eccce26c600943cc9a1e5f9335ffa0a8ddb76e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Aug 2020 20:43:38 +0200 Subject: [PATCH] Fix phpcs --- .../triggers/interface_50_modAgenda_ActionsAuto.class.php | 3 +-- htdocs/expedition/card.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php index 0874698456f..b9de189b996 100644 --- a/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php +++ b/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php @@ -780,7 +780,6 @@ class InterfaceActionsAuto extends DolibarrTriggers // TODO Merge all previous cases into this generic one else // $action = BILL_DELETE, TICKET_CREATE, TICKET_MODIFY, TICKET_DELETE, CONTACT_SENTBYMAIL, ... { - // Note: We are here only if $conf->global->MAIN_AGENDA_ACTIONAUTO_action is on (tested at begining of this function). // Note that these key can be set in agenda setup, only if defined into c_action_trigger // Load translation files required by the page @@ -878,7 +877,7 @@ class InterfaceActionsAuto extends DolibarrTriggers $actioncomm->userassigned = $object->sendtouserid; } if (property_exists($object, 'sendtoid') && is_array($object->sendtoid) && count($object->sendtoid) > 0) { - foreach($object->sendtoid as $val) { + foreach ($object->sendtoid as $val) { $actioncomm->socpeopleassigned[$val] = $val; } } diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index 8de5ac787d7..85f2089555e 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1074,8 +1074,8 @@ if ($action == 'create') print ''.$langs->trans("QtyToShip"); if (empty($conf->productbatch->enabled)) { - print '
'.$langs->trans("Fill").''; - print ' / '; + print '
'.$langs->trans("Fill").''; + print ' / '; } else { print '
'; }