Fix phpcs
This commit is contained in:
parent
3aaefd15b0
commit
b6308f6dfa
@ -217,12 +217,9 @@ if ($conf->global->PRODUIT_MULTIPRICES){
|
|||||||
for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
|
for ($i = 1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
|
||||||
{
|
{
|
||||||
$keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i;
|
$keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i;
|
||||||
if (!empty($conf->global->$keyforlabel))
|
if (!empty($conf->global->$keyforlabel)) {
|
||||||
{
|
|
||||||
$labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel);
|
$labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
$labelp = $langs->trans("SellingPrice")." ".$i;
|
$labelp = $langs->trans("SellingPrice")." ".$i;
|
||||||
}
|
}
|
||||||
$arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40);
|
$arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40);
|
||||||
|
|||||||
@ -183,7 +183,7 @@ class LangTest extends PHPUnit\Framework\TestCase
|
|||||||
unset($tmplangs);
|
unset($tmplangs);
|
||||||
|
|
||||||
$filesarray2 = scandir(DOL_DOCUMENT_ROOT.'/langs/'.$code);
|
$filesarray2 = scandir(DOL_DOCUMENT_ROOT.'/langs/'.$code);
|
||||||
foreach($filesarray2 as $key => $file) {
|
foreach ($filesarray2 as $key => $file) {
|
||||||
if (! preg_match('/\.lang$/', $file)) {
|
if (! preg_match('/\.lang$/', $file)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user