Skip to content

Commit

Permalink
CodeStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Apr 4, 2024
1 parent 46f4a20 commit f415a7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Controller/DispatcherController.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ public function updatePaymentTransStatus(): void
* @throws Exception
* @SuppressWarnings(PHPMD.BooleanArgumentFlag)
*/
protected function handleTmpOrder(Payment $unzerPayment, TmpOrder $tmpOrder, array $tmpData, bool $error = false): void
{
protected function handleTmpOrder(
Payment $unzerPayment,
TmpOrder $tmpOrder,
array $tmpData,
bool $error = false
): void {
$translator = $this->getServiceFromContainer(Translator::class);
$result = $translator->translate('oscunzer_ERROR_HANDLE_TMP_ORDER');
if ($tmpOrder->load($tmpData['OXID'])) {
Expand Down
4 changes: 3 additions & 1 deletion src/Controller/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ protected function checkForUnzerPaymentErrors(): void
$payment->load($actualPaymentId) &&
$payment->isUnzerPayment()
) {
$orderId = is_string($session->getVariable('sess_challenge')) ? $session->getVariable('sess_challenge') : '';
$orderId = is_string($session->getVariable('sess_challenge')) ?
$session->getVariable('sess_challenge') :
'';
if ($orderId) {
$order = oxNew(Order::class);
$order->delete($orderId);
Expand Down

0 comments on commit f415a7d

Please sign in to comment.