From f5bf68a765f98a249b02fd84f9f64cabd8a53a37 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Wed, 24 Jan 2024 09:36:51 +0100 Subject: [PATCH] NTR: delete more dies (#398) Co-authored-by: Vitalij Mik --- Controllers/Backend/MollieConfiguration.php | 4 ++-- Controllers/Backend/MolliePayments.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Controllers/Backend/MollieConfiguration.php b/Controllers/Backend/MollieConfiguration.php index 855014e7..833105cd 100644 --- a/Controllers/Backend/MollieConfiguration.php +++ b/Controllers/Backend/MollieConfiguration.php @@ -108,8 +108,8 @@ public function testKeysAction() 'data' => $logData, ] ); - - die($backendOutput); + echo $backendOutput; + ob_clean(); } /** diff --git a/Controllers/Backend/MolliePayments.php b/Controllers/Backend/MolliePayments.php index cb935268..65b24917 100644 --- a/Controllers/Backend/MolliePayments.php +++ b/Controllers/Backend/MolliePayments.php @@ -55,8 +55,8 @@ public function updateAction() $this->logger->info($importCount . ' Payment Methods have been successfully imported in Backend'); $message = sprintf('%d Payment Methods were imported/updated', $importCount); - - die($message); + echo $message; + ob_clean(); } catch (\Exception $e) { $this->logger->error( 'Error when importing payment methods in Backend', @@ -66,7 +66,8 @@ public function updateAction() ); http_response_code(500); - die($e->getMessage()); + echo $e->getMessage(); + ob_clean(); } }