mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
fix phpstan (#31177)
* fix phpstan * fix phpstan * fix phpstan * fix phpstan * fix phpstan
This commit is contained in:
@@ -145,7 +145,7 @@ abstract class ModeleNumRefBarCode extends CommonNumRefGenerator
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '<strike>';
|
||||
}
|
||||
$s .= yn(!$this->code_null, 1, 2);
|
||||
$s .= yn($this->code_null ? 0 : 1, 1, 2);
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '</strike> '.yn(1, 1, 2).' ('.$langs->trans("ForcedToByAModule", $langs->transnoentities("yes")).')';
|
||||
}
|
||||
@@ -156,7 +156,7 @@ abstract class ModeleNumRefBarCode extends CommonNumRefGenerator
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '<strike>';
|
||||
}
|
||||
$s .= yn(!$this->code_null, 1, 2);
|
||||
$s .= yn($this->code_null ? 0 : 1, 1, 2);
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '</strike> '.yn(1, 1, 2).' ('.$langs->trans("ForcedToByAModule", $langs->transnoentities("yes")).')';
|
||||
}
|
||||
@@ -167,7 +167,7 @@ abstract class ModeleNumRefBarCode extends CommonNumRefGenerator
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '<strike>';
|
||||
}
|
||||
$s .= yn(!$this->code_null, 1, 2);
|
||||
$s .= yn($this->code_null ? 0 : 1, 1, 2);
|
||||
if (getDolGlobalString('MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
|
||||
$s .= '</strike> '.yn(1, 1, 2).' ('.$langs->trans("ForcedToByAModule", $langs->transnoentities("yes")).')';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user