diff --git a/htdocs/admin/tools/ui/components/event-message.php b/htdocs/admin/tools/ui/components/event-message.php index f612f05a0c2..9de212b8991 100644 --- a/htdocs/admin/tools/ui/components/event-message.php +++ b/htdocs/admin/tools/ui/components/event-message.php @@ -101,7 +101,7 @@ $documentation->showSidebar(); ?> $label = 'My action label used for accessibility visually for impaired people'; $user_right = 1; - $html = ''.$langs->trans('DocSetEventMessageDisplayMessages');; + $html = ''.$langs->trans('DocSetEventMessageDisplayMessages'); $action_type = 'displayeventmessages'; $url = $_SERVER["PHP_SELF"].'?action=displayeventmessages'; print dolGetButtonAction($label, $html, $action_type, $url, '', $user_right); ?> @@ -138,7 +138,7 @@ $documentation->showSidebar(); ?> '.$langs->trans('DocSetEventMessageDisplayOKMessage');; + $html = ''.$langs->trans('DocSetEventMessageDisplayOKMessage'); $action_type = 'displayeventmessageok'; $url = $_SERVER["PHP_SELF"].'?action=displayeventmessageok#seteventmessagesection-contextvariations'; $params['attr']['style'] = 'background: #446548'; @@ -146,7 +146,7 @@ $documentation->showSidebar(); ?> $label = 'My action label used for accessibility visually for impaired people'; $user_right = 1; - $html = ''.$langs->trans('DocSetEventMessageDisplayWarningMessage');; + $html = ''.$langs->trans('DocSetEventMessageDisplayWarningMessage'); $action_type = 'displayeventmessagewarning'; $url = $_SERVER["PHP_SELF"].'?action=displayeventmessagewarning#seteventmessagesection-contextvariations'; $params['attr']['style'] = 'background: #a28918'; @@ -154,7 +154,7 @@ $documentation->showSidebar(); ?> $label = 'My action label used for accessibility visually for impaired people'; $user_right = 1; - $html = ''.$langs->trans('DocSetEventMessageDisplayErrorMessage');; + $html = ''.$langs->trans('DocSetEventMessageDisplayErrorMessage'); $action_type = 'displayeventmessageerror'; $url = $_SERVER["PHP_SELF"].'?action=displayeventmessageerror#seteventmessagesection-contextvariations'; $params['attr']['style'] = 'background: #a72947'; diff --git a/htdocs/compta/facture/class/facture-rec.class.php b/htdocs/compta/facture/class/facture-rec.class.php index 2d4481daa54..cc58d67dbba 100644 --- a/htdocs/compta/facture/class/facture-rec.class.php +++ b/htdocs/compta/facture/class/facture-rec.class.php @@ -571,7 +571,7 @@ class FactureRec extends CommonInvoice $sql .= " localtax2 = ".((float) $this->total_localtax2).","; $sql .= " total_ht = ".((float) $this->total_ht).","; $sql .= " total_ttc = ".((float) $this->total_ttc).","; - $sql .= " fk_societe_rib = ".(!empty($this->fk_societe_rib) ? ((int) $this->fk_societe_rib) : 'NULL');; + $sql .= " fk_societe_rib = ".(!empty($this->fk_societe_rib) ? ((int) $this->fk_societe_rib) : 'NULL'); // TODO Add missing fields $sql .= " WHERE rowid = ".((int) $this->id); diff --git a/htdocs/contrat/class/api_contracts.class.php b/htdocs/contrat/class/api_contracts.class.php index eaaeb04daa0..5637279b9d7 100644 --- a/htdocs/contrat/class/api_contracts.class.php +++ b/htdocs/contrat/class/api_contracts.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2016 Laurent Destailleur - * Copyright (C) 2018-2020 Frédéric France + * Copyright (C) 2018-2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -528,7 +528,7 @@ class Contracts extends DolibarrApi } if ($field == 'array_options' && is_array($value)) { foreach ($value as $index => $val) { - $this->contract->array_options[$index] = $this->_checkValForAPI($field, $val, $this->contract);; + $this->contract->array_options[$index] = $this->_checkValForAPI($field, $val, $this->contract); } continue; } diff --git a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php index 6f70914d9f7..48c6e2f1f89 100644 --- a/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php @@ -796,7 +796,7 @@ class pdf_eratosthene extends ModelePDFCommandes $drawTabHideTop = $hidetop; $drawTabTop = $tab_top_newpage; - $drawTabBottom = $this->page_hauteur - $heightforfooter;; + $drawTabBottom = $this->page_hauteur - $heightforfooter; $hideBottom = 0; // TODO understand why it change to 1 or 0 during process if ($i == $pageposbeforeprintlines) { diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index 7fa776dff12..f3039d6fc2b 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -986,7 +986,7 @@ class pdf_sponge extends ModelePDFFactures $drawTabHideTop = $hidetop; $drawTabTop = $this->tab_top_newpage; - $drawTabBottom = $this->page_hauteur - $this->heightforfooter;; + $drawTabBottom = $this->page_hauteur - $this->heightforfooter; $hideBottom = 0; // TODO understand why it change to 1 or 0 during process if ($i == $pageposbeforeprintlines) { diff --git a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php index c52dc1b2c16..f30314443f0 100644 --- a/htdocs/core/modules/propale/doc/pdf_cyan.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_cyan.modules.php @@ -822,7 +822,7 @@ class pdf_cyan extends ModelePDFPropales $drawTabHideTop = $hidetop; $drawTabTop = $tab_top_newpage; - $drawTabBottom = $this->page_hauteur - $heightforfooter;; + $drawTabBottom = $this->page_hauteur - $heightforfooter; $hideBottom = 0; // TODO understand why it change to 1 or 0 during process if ($i == $pageposbeforeprintlines) { diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 13f5aca1700..6c3863f1f0d 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -961,7 +961,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $colspan="3"; if (isModEnabled('stock')) { - $colspan++;; + $colspan++; } if (isModEnabled('productbatch')) { $colspan++; diff --git a/htdocs/projet/class/api_tasks.class.php b/htdocs/projet/class/api_tasks.class.php index 569ae523ce3..e51899beae2 100644 --- a/htdocs/projet/class/api_tasks.class.php +++ b/htdocs/projet/class/api_tasks.class.php @@ -1,6 +1,7 @@ * Copyright (C) 2016 Laurent Destailleur + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -464,7 +465,7 @@ class Tasks extends DolibarrApi } if ($field == 'array_options' && is_array($value)) { foreach ($value as $index => $val) { - $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task);; + $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task); } continue; } diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 9bbf3f4b97c..dfa0395f574 100644 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -469,7 +469,7 @@ if ($action == "update_extras" && $permissiontoadd) { $triggermodname = 'SALARY_MODIFY'; - $result = $object->insertExtraFields(empty($triggermodname) ? '' : $triggermodname, $user); + $result = $object->insertExtraFields($triggermodname, $user); if ($result > 0) { setEventMessages($langs->trans('RecordSaved'), null, 'mesgs'); $action = 'view'; diff --git a/htdocs/theme/md/info-box.inc.php b/htdocs/theme/md/info-box.inc.php index d399f475ec3..2e9a50e7406 100644 --- a/htdocs/theme/md/info-box.inc.php +++ b/htdocs/theme/md/info-box.inc.php @@ -1,5 +1,6 @@ + * Copyright (C) 2024 Frédéric France */ if (!defined('ISLOADEDBYSTEELSHEET')) { die('Must be call by steelsheet'); @@ -235,8 +236,8 @@ a.info-box-text-a i.fa.fa-exclamation-triangle { float: left; text-align: center; font-size: 45px; - line-height: 94px;; /* must be same height as min-height of .info-box */ - height: 94px;; /* must be same height as min-height of .info-box */ + line-height: 94px; /* must be same height as min-height of .info-box */ + height: 94px; /* must be same height as min-height of .info-box */ width: 86px; background: var(--colorbacktitle1) !important; global->THEME_SATURATE_RATIO)) { ?>