Skip to content

Commit f5bf68a

Browse files
BlackScorpVitalij Mik
and
Vitalij Mik
authoredJan 24, 2024
NTR: delete more dies (#398)
Co-authored-by: Vitalij Mik <[email protected]>
1 parent 66422a9 commit f5bf68a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
 

‎Controllers/Backend/MollieConfiguration.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public function testKeysAction()
108108
'data' => $logData,
109109
]
110110
);
111-
112-
die($backendOutput);
111+
echo $backendOutput;
112+
ob_clean();
113113
}
114114

115115
/**

‎Controllers/Backend/MolliePayments.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function updateAction()
5555
$this->logger->info($importCount . ' Payment Methods have been successfully imported in Backend');
5656

5757
$message = sprintf('%d Payment Methods were imported/updated', $importCount);
58-
59-
die($message);
58+
echo $message;
59+
ob_clean();
6060
} catch (\Exception $e) {
6161
$this->logger->error(
6262
'Error when importing payment methods in Backend',
@@ -66,7 +66,8 @@ public function updateAction()
6666
);
6767

6868
http_response_code(500);
69-
die($e->getMessage());
69+
echo $e->getMessage();
70+
ob_clean();
7071
}
7172
}
7273

0 commit comments

Comments
 (0)