Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-03-14 23:27:50 +01:00
parent 51de29458f
commit c44d9bf8e2
2 changed files with 3 additions and 5 deletions

View File

@ -1368,7 +1368,7 @@ if ($action == 'create')
print '<tr class="oddeven"><td colspan="3"></td><td align="center">';
print '<input name="qtyl'.$indiceAsked.'_'.$subj.'" id="qtyl'.$indiceAsked.'_'.$subj.'" type="text" size="4" value="0" disabled="disabled"> ';
print '</td>';
print '<td align="left">';
print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $staticwarehouse->libelle);
print '</td></tr>';
@ -1424,7 +1424,6 @@ if ($action == 'create')
print '<!-- Show details of stock -->';
print '('.$stock.')';
}
else
{
@ -1525,7 +1524,6 @@ if ($action == 'create')
}
}
}
}
if ($subj == 0) // Line not shown yet, we show it
{

View File

@ -608,7 +608,7 @@ else
$reshook = $hookmanager->executeHooks('printObjectLine', $parameters, $object, $action);
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
if (empty($reshook))
if (empty($reshook))
{
print '<tr class="oddeven">';
if ($object->lines[$i]->fk_product > 0)
@ -635,7 +635,7 @@ else
{
$label = (!empty($object->lines[$i]->label) ? $object->lines[$i]->label : $object->lines[$i]->product_label);
}
print '<td>';
// Affiche ligne produit