Clean code
This commit is contained in:
parent
e7539f2e19
commit
0680d4e910
4 changed files with 0 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue