Clean code

This commit is contained in:
Laurent Destailleur
2024-11-04 12:37:28 +01:00
parent e7539f2e19
commit 0680d4e910
4 changed files with 0 additions and 8 deletions

View File

@@ -113,8 +113,6 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
if (empty($local)) {
accessforbidden('Parameter localTaxType is missing');
// @phan-suppress-next-line PhanPluginUnreachableCode
exit; // accessforbidden already exits @phpstan-ignore-line
}
$calc = 0;

View File

@@ -199,8 +199,6 @@ function pt($db, $sql, $date)
if (empty($localTaxType)) {
accessforbidden('Parameter localTaxType is missing');
// @phan-suppress-next-line PhanPluginUnreachableCode
exit; // accessforbidden already exits @phpstan-ignore-line
}

View File

@@ -121,8 +121,6 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
if (empty($local)) {
accessforbidden('Parameter localTaxType is missing');
// @phan-suppress-next-line PhanPluginUnreachableCode
exit; // accessforbidden already exits @phpstan-ignore-line
}

View File

@@ -228,8 +228,6 @@ llxHeader('', $title, $help_url, '', 0, 0, $arrayofjs, $arrayofcss, '', 'mod-web
if ($action == 'create') {
if (empty($permissiontoadd)) {
accessforbidden('NotEnoughPermissions', 0, 1);
// @phan-suppress-next-line PhanPluginUnreachableCode
exit; // accessforbidden already exits @phpstan-ignore-line
}
print load_fiche_titre($langs->trans("NewObject", $langs->transnoentitiesnoconv("Target")), '', 'object_'.$object->picto);