Skip to content

Commit

Permalink
Code Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Feb 28, 2023
1 parent 69aaacf commit 05d64b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Observer/ShipmentSaveAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class ShipmentSaveAfter implements ObserverInterface
* @param PayPayment $payPayment
*/
public function __construct(
Config $config,
Store $store,
PayPayment $payPayment
Config $config,
Store $store,
PayPayment $payPayment
) {
$this->config = $config;
$this->store = $store;
Expand Down Expand Up @@ -93,7 +93,7 @@ public function execute(Observer $observer)
}

$order->addStatusHistoryComment(
__('PAY. - Performed auto-capture. Result: ') . ($bCaptureResult ? 'Success' : 'Failed') . (empty($strFriendlyMessage) ? '' : '. ' . $strFriendlyMessage)
__('PAY. - Performed auto-capture. Result: ') . ($bCaptureResult ? 'Success' : 'Failed') . (empty($strFriendlyMessage) ? '' : '. ' . $strFriendlyMessage)
)->save();

# Whether capture failed or succeeded, we still might have to process paid order
Expand All @@ -104,7 +104,7 @@ public function execute(Observer $observer)
} else {
payHelper::logDebug(
'Auto-Capture conditions not met (yet). Amountpaid:' . $amountPaid . ' bHasAmountAuthorized: ' . ($bHasAmountAuthorized ? '1' : '0'),
[],
[],
$order->getStore()
);
}
Expand Down

0 comments on commit 05d64b9

Please sign in to comment.