Fix phpcs

This commit is contained in:
Laurent Destailleur 2022-03-24 14:09:46 +01:00
parent 3056635aaf
commit 9747efe050
2 changed files with 4 additions and 9 deletions

View File

@ -312,7 +312,6 @@ if ($id > 0 || $ref) {
$parameters = array();
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
if (empty($reshook)) {
if (empty($object->date_trans)) {
if ($object->type == 'bank-transfer') print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->paymentbybanktransfer->send);
else print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->prelevement->bons->send);

View File

@ -191,10 +191,8 @@ if ($action == 'create') {
print '</form>';
dol_set_focus('input[name="label"]');
}
// Part to edit record
elseif (($id || $ref) && $action == 'edit') {
} elseif (($id || $ref) && $action == 'edit') {
// Part to edit record
print load_fiche_titre($langs->trans("ProductAttribute"), '', 'object_' . $object->picto);
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
@ -224,10 +222,8 @@ elseif (($id || $ref) && $action == 'edit') {
print '</div>';
print '</form>';
}
// Part to show record
elseif ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
} elseif ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
// Part to show record
$res = $object->fetch_optionals();
$head = productAttributePrepareHead($object);