Browse Source

Fix phpcs

Laurent Destailleur 3 years ago
parent
commit
9747efe050
2 changed files with 4 additions and 9 deletions
  1. 0 1
      htdocs/compta/prelevement/card.php
  2. 4 8
      htdocs/variants/card.php

+ 0 - 1
htdocs/compta/prelevement/card.php

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

+ 4 - 8
htdocs/variants/card.php

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