From bc5c5657f3a67dde09e276ff12b6a597584b40ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Schl=C3=A4pfer?= Date: Wed, 27 Sep 2023 12:41:04 +0200 Subject: [PATCH] Cleanup & Spelling --- src/modules/Invoice/Controller/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/Invoice/Controller/Client.php b/src/modules/Invoice/Controller/Client.php index 9c6bce3e0..f153c7643 100644 --- a/src/modules/Invoice/Controller/Client.php +++ b/src/modules/Invoice/Controller/Client.php @@ -55,7 +55,7 @@ class Client implements \FOSSBilling\InjectionAwareInterface $hash_access = $systemService->getParamValue('invoice_accessible_from_hash', '1'); // If hash_access is not 0 or if a client is logged in, get the logged-in client - if (!$this->di['auth']->isAdminLoggedIn() && $hash_access == '0') { + if (!$this->di['auth']->isAdminLoggedIn() && $hash_access === '0') { $this->redirectIfNotInvoiceBuyer($app, $invoice); } return $app->render('mod_invoice_invoice', ['invoice' => $invoice]); @@ -72,7 +72,7 @@ class Client implements \FOSSBilling\InjectionAwareInterface $hash_access = $systemService->getParamValue('invoice_accessible_from_hash', '1'); // If hash_access is not 0 or if a client is logged in, get the logged-in client - if (!$this->di['auth']->isAdminLoggedIn() && $hash_access == '0') { + if (!$this->di['auth']->isAdminLoggedIn() && $hash_access === '0') { $this->redirectIfNotInvoiceBuyer($app, $invoice); } return $app->render('mod_invoice_print', ['invoice' => $invoice]); @@ -116,7 +116,7 @@ class Client implements \FOSSBilling\InjectionAwareInterface $hash_access = $systemService->getParamValue('invoice_accessible_from_hash', '1'); // If hash_access is not 0 or if a client is logged in, get the logged-in client - if (!$this->di['auth']->isAdminLoggedIn() && $hash_access == '0') { + if (!$this->di['auth']->isAdminLoggedIn() && $hash_access === '0') { $this->redirectIfNotInvoiceBuyer($app, $invoice); } return $app->render('mod_invoice_pdf', ['invoice' => $invoice]);