We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806e7fa commit b85e74eCopy full SHA for b85e74e
src/Refunding/Provider/TpayAwareRefundPaymentMethodsProvider.php
@@ -24,15 +24,14 @@ public function findForOrder(OrderInterface $order): array
24
25
$lastCompletedPayment = $this->getLastCompletedPayment($order);
26
27
- if ($lastCompletedPayment === null) {
+ if (null === $lastCompletedPayment) {
28
return $paymentMethods;
29
}
30
31
$details = $lastCompletedPayment->getDetails();
32
$paymentDetails = PaymentDetails::fromArray($details);
33
- $transactionId = $paymentDetails->getTransactionId();
34
35
- if ($transactionId !== null) {
+ if (null !== $paymentDetails->getTransactionId()) {
36
37
38
0 commit comments