From 48c4ddf3477983a63b9c7d9c9aad707ec72011d5 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Tue, 30 Nov 2021 10:51:09 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/expedition/list.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php index 2b73a8e54f0..3787a8fa5a9 100644 --- a/htdocs/expedition/list.php +++ b/htdocs/expedition/list.php @@ -212,28 +212,23 @@ if (empty($reshook)) { } // If massaction is close -if ($massaction == 'classifyclose') -{ +if ($massaction == 'classifyclose') { $error=0; $selectids = GETPOST('toselect', 'array'); - foreach ($selectids as $selectid) - { - // $object->fetch($selectid); + foreach ($selectids as $selectid) { + // $object->fetch($selectid); $object->fetch($selectid); $result = $object->setClosed(); - } - $massaction = $action = 'classifyclose'; + $massaction = $action = 'classifyclose'; - if ($result < 0) - { + if ($result < 0) { $error++; } - if (!$error) - { + if (!$error) { $db->commit(); setEventMessage($langs->trans("Close Done"));