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++)
|
||||
{
|
||||
$keyforlabel = 'PRODUIT_MULTIPRICES_LABEL'.$i;
|
||||
if (!empty($conf->global->$keyforlabel))
|
||||
{
|
||||
if (!empty($conf->global->$keyforlabel)) {
|
||||
$labelp = $i.' - '.$langs->trans($conf->global->$keyforlabel);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$labelp = $langs->trans("SellingPrice")." ".$i;
|
||||
}
|
||||
$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);
|
||||
|
||||
$filesarray2 = scandir(DOL_DOCUMENT_ROOT.'/langs/'.$code);
|
||||
foreach($filesarray2 as $key => $file) {
|
||||
foreach ($filesarray2 as $key => $file) {
|
||||
if (! preg_match('/\.lang$/', $file)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user