Fix phpcs

This commit is contained in:
Laurent Destailleur 2020-05-26 01:16:18 +02:00
parent 3aaefd15b0
commit b6308f6dfa
2 changed files with 3 additions and 6 deletions

View File

@ -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);

View File

@ -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;
}