diff --git a/src/library/Box/AppAdmin.php b/src/library/Box/AppAdmin.php index 7b9cfc69f..27d8967be 100644 --- a/src/library/Box/AppAdmin.php +++ b/src/library/Box/AppAdmin.php @@ -27,9 +27,9 @@ class Box_AppAdmin extends Box_App protected function checkPermission(): void { - /** + /* * Disable permission checks when an update is pending finalization. - * + * * This is to make sure update finalization still works when there are changes to the * permission system and patches need to be applied before everything starts working again. */ diff --git a/src/library/FOSSBilling/Api/Dispatcher.php b/src/library/FOSSBilling/Api/Dispatcher.php index ce2db1eb9..fe4b38001 100644 --- a/src/library/FOSSBilling/Api/Dispatcher.php +++ b/src/library/FOSSBilling/Api/Dispatcher.php @@ -58,9 +58,9 @@ final class Dispatcher implements InjectionAwareInterface throw new Exception('FOSSBilling module :mod is not installed/activated', [':mod' => $mod], 715); } - /** + /* * Disable permission checks when an update is pending finalization. - * + * * This is to make sure update finalization still works when there are changes to the * permission system and patches need to be applied before everything starts working again. */ diff --git a/src/modules/Client/Service.php b/src/modules/Client/Service.php index 2076667b2..35320c5c2 100644 --- a/src/modules/Client/Service.php +++ b/src/modules/Client/Service.php @@ -535,7 +535,7 @@ class Service implements InjectionAwareInterface } if (!$client instanceof \Model_Client) { - throw new \FOSSBilling\InformationException('Client not found'); + throw new InformationException('Client not found'); } return $client; diff --git a/src/modules/Invoice/Service.php b/src/modules/Invoice/Service.php index b01971f07..e033932c8 100644 --- a/src/modules/Invoice/Service.php +++ b/src/modules/Invoice/Service.php @@ -1472,14 +1472,14 @@ class Service implements InjectionAwareInterface $invoice = $this->di['db']->findOne('Invoice', 'hash = ?', [$data['hash']]); if (!$invoice instanceof \Model_Invoice) { - throw new \FOSSBilling\InformationException('Invoice not found', null, 812); + throw new InformationException('Invoice not found', null, 812); } $this->checkInvoiceAuth($invoice, InvoiceOperation::PAYMENT); $gtw = $this->di['db']->load('PayGateway', $data['gateway_id']); if (!$gtw instanceof \Model_PayGateway) { - throw new \FOSSBilling\InformationException('Payment method not found', null, 813); + throw new InformationException('Payment method not found', null, 813); } if (!$gtw->enabled) { @@ -1547,7 +1547,7 @@ class Service implements InjectionAwareInterface $invoice = $this->di['db']->findOne('Invoice', 'hash = :hash', [':hash' => $hash]); if (!$invoice instanceof \Model_Invoice) { - throw new \FOSSBilling\InformationException('Invoice not found'); + throw new InformationException('Invoice not found'); } $this->checkInvoiceAuth($invoice, InvoiceOperation::READ); diff --git a/src/modules/Invoice/templates/admin/mod_invoice_invoice.html.twig b/src/modules/Invoice/templates/admin/mod_invoice_invoice.html.twig index ef497616c..2316d9d1f 100644 --- a/src/modules/Invoice/templates/admin/mod_invoice_invoice.html.twig +++ b/src/modules/Invoice/templates/admin/mod_invoice_invoice.html.twig @@ -153,6 +153,7 @@