forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user