diff --git a/build/phpstan/phpstan-baseline.neon b/build/phpstan/phpstan-baseline.neon
index 1d9de6f0e53..2b3383c79bd 100644
--- a/build/phpstan/phpstan-baseline.neon
+++ b/build/phpstan/phpstan-baseline.neon
@@ -8724,24 +8724,12 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_actions.php
- -
- message: '#^Variable \$nblines might not be defined\.$#'
- identifier: variable.undefined
- count: 2
- path: ../../htdocs/core/boxes/box_actions.php
-
-
message: '#^Constructor of class box_actions_future has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
count: 1
path: ../../htdocs/core/boxes/box_actions_future.php
- -
- message: '#^Variable \$nblines might not be defined\.$#'
- identifier: variable.undefined
- count: 2
- path: ../../htdocs/core/boxes/box_actions_future.php
-
-
message: '#^Constructor of class box_activity has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -8850,12 +8838,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_dolibarr_state_board.php
- -
- message: '#^Property box_external_rss\:\:\$paramdef has no type specified\.$#'
- identifier: missingType.property
- count: 1
- path: ../../htdocs/core/boxes/box_external_rss.php
-
-
message: '#^Constructor of class box_factures has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -8952,12 +8934,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
- -
- message: '#^Variable \$mesg might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
-
-
message: '#^Constructor of class box_graph_nb_ticket_last_x_days has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -8994,12 +8970,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_graph_orders_permonth.php
- -
- message: '#^Variable \$mesg might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_graph_orders_permonth.php
-
-
message: '#^Constructor of class box_graph_orders_supplier_permonth has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -9018,12 +8988,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php
- -
- message: '#^Variable \$mesg might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_graph_orders_supplier_permonth.php
-
-
message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#'
identifier: greater.alwaysFalse
@@ -9042,30 +9006,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_graph_product_distribution.php
- -
- message: '#^Variable \$mesg might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_graph_product_distribution.php
-
- -
- message: '#^Variable \$px1 might not be defined\.$#'
- identifier: variable.undefined
- count: 3
- path: ../../htdocs/core/boxes/box_graph_product_distribution.php
-
- -
- message: '#^Variable \$px2 might not be defined\.$#'
- identifier: variable.undefined
- count: 3
- path: ../../htdocs/core/boxes/box_graph_product_distribution.php
-
- -
- message: '#^Variable \$px3 might not be defined\.$#'
- identifier: variable.undefined
- count: 4
- path: ../../htdocs/core/boxes/box_graph_product_distribution.php
-
-
message: '#^Constructor of class box_graph_propales_permonth has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -9078,12 +9018,6 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_graph_propales_permonth.php
- -
- message: '#^Variable \$mesg might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_graph_propales_permonth.php
-
-
message: '#^Constructor of class box_graph_ticket_by_severity has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -9192,24 +9126,12 @@ parameters:
count: 1
path: ../../htdocs/core/boxes/box_project.php
- -
- message: '#^Variable \$num might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_project.php
-
-
message: '#^Constructor of class box_project_opportunities has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
count: 1
path: ../../htdocs/core/boxes/box_project_opportunities.php
- -
- message: '#^Variable \$num might not be defined\.$#'
- identifier: variable.undefined
- count: 1
- path: ../../htdocs/core/boxes/box_project_opportunities.php
-
-
message: '#^Constructor of class box_propales has an unused parameter \$param\.$#'
identifier: constructor.unusedParameter
@@ -9786,24 +9708,6 @@ parameters:
count: 1
path: ../../htdocs/core/class/commonorder.class.php
- -
- message: '#^Property CommonOrderLine\:\:\$localtax1_type has no type specified\.$#'
- identifier: missingType.property
- count: 1
- path: ../../htdocs/core/class/commonorder.class.php
-
- -
- message: '#^Property CommonOrderLine\:\:\$localtax2_type has no type specified\.$#'
- identifier: missingType.property
- count: 1
- path: ../../htdocs/core/class/commonorder.class.php
-
- -
- message: '#^Property CommonOrderLine\:\:\$price has no type specified\.$#'
- identifier: missingType.property
- count: 1
- path: ../../htdocs/core/class/commonorder.class.php
-
-
message: '#^Parameter \#2 \$pt of method CommonStickerGenerator\:\:Set_Char_Size\(\) expects int, float given\.$#'
identifier: argument.type
@@ -11688,12 +11592,6 @@ parameters:
count: 1
path: ../../htdocs/core/lib/company.lib.php
- -
- message: '#^Property Contact\:\:\$fields .*$#'
- identifier: assign.propertyType
- count: 3
- path: ../../htdocs/core/lib/company.lib.php
-
-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse
@@ -31716,12 +31614,6 @@ parameters:
count: 2
path: ../../htdocs/societe/class/societe.class.php
- -
- message: '#^Property Societe\:\:\$fields .*$#'
- identifier: assign.propertyType
- count: 3
- path: ../../htdocs/societe/class/societe.class.php
-
-
message: '#^Property Societe\:\:\$fournisseur \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@@ -32808,12 +32700,6 @@ parameters:
count: 1
path: ../../htdocs/theme/md/flags-sprite.inc.php
- -
- message: '#^Variable \$conf might not be defined\.$#'
- identifier: variable.undefined
- count: 4
- path: ../../htdocs/theme/md/info-box.inc.php
-
-
message: '#^Variable \$left might not be defined\.$#'
identifier: variable.undefined
diff --git a/dev/tools/codespell/codespell-lines-ignore.txt b/dev/tools/codespell/codespell-lines-ignore.txt
index f013fa5ede5..b7cfa4033c0 100644
--- a/dev/tools/codespell/codespell-lines-ignore.txt
+++ b/dev/tools/codespell/codespell-lines-ignore.txt
@@ -55,7 +55,7 @@
preg_match('/:([!<>=\s]+|in|notin|like|notlike):/', $tmpcrit, $reg);
print ''.$langs->trans("TransferStock").'';
print ''.$langs->trans("ClinkOnALinkOfColumn", $langs->transnoentitiesnoconv("Referers")).'';
- print '
'.dol_print_date($db->jdate($obj->periode), 'day').' | ';
+ print ''.dol_print_date($db->jdate($obj->period), 'day').' | ';
"sme",
$action = 'transfert';
$cle_rib = strtolower(checkES($rib, $CCC));
@@ -71,7 +71,7 @@
$reday = GETPOSTINT('reday');
$sql .= " (cs.periode IS NOT NULL AND cs.periode between '".$db->idate(dol_get_first_day($year))."' AND '".$db->idate(dol_get_last_day($year))."')";
$sql .= " OR (cs.periode IS NULL AND cs.date_ech between '".$db->idate(dol_get_first_day($year))."' AND '".$db->idate(dol_get_last_day($year))."')";
- $sql .= ", '".$this->db->idate($this->periode)."'";
+ $sql .= ", '".$this->db->idate($this->period)."'";
$sql .= ", cs.libelle as label, cs.fk_type, cs.amount, cs.fk_projet as fk_project, cs.paye, cs.periode as period, cs.import_key";
$sql .= ", periode = '".$this->db->idate($this->period ? $this->period : $this->periode)."'";
$sql = "INSERT INTO ".MAIN_DB_PREFIX."chargesociales (fk_type, fk_account, fk_mode_reglement, libelle, date_ech, periode, amount, fk_projet, entity, fk_user_author, fk_user, date_creation)";
@@ -83,14 +83,12 @@
$title = $langs->trans('Product')." ".$shortlabel." - ".$langs->trans('Referers');
$title = $langs->trans('Service')." ".$shortlabel." - ".$langs->trans('Referers');
$title = $langs->transnoentities("Balance")." - ".$langs->transnoentities("AllTime");
- // ceci afin d'etre compatible avec les cas ou la periode n'etait pas obligatoire
if (!empty($arrayfields['cs.periode']['checked'])) {
if ($newamount == 0 || empty($this->date_ech) || (empty($this->period) && empty($this->periode))) {
if ($user->hasRight('stock', 'mouvement', 'creer')) {
if (GETPOSTISSET("reday") && GETPOSTISSET("remonth") && GETPOSTISSET("reyear")) {
if (empty($reyear) || empty($remonth) || empty($reday)) {
* @param float|string $selectedrate Force preselected vat rate. Can be '8.5' or '8.5 (NOO)' for example. Use '' for no forcing.
- $date = $obj->periode;
$datepaid = dol_mktime(12, 0, 0, GETPOST("remonth"), GETPOST("reday"), GETPOST("reyear"));
$datepaid = dol_mktime(12, 0, 0, GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"));
$datepaye = dol_mktime(12, 0, 0, GETPOSTINT("remonth"), GETPOSTINT("reday"), GETPOSTINT("reyear"));
@@ -128,7 +126,6 @@
print '