Skip to content

Commit fff342e

Browse files
convenientaa-kashk
authored andcommitted
Fix code style
1 parent 6b8aa43 commit fff342e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Sales/Model/Order/Invoice/Plugin/AddressUpdate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function __construct(
4242
}
4343

4444
/**
45+
* Attach addresses to invoices
46+
*
4547
* @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $subject
4648
* @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $result
4749
* @param \Magento\Sales\Model\Order $order
@@ -78,10 +80,8 @@ public function afterProcess(
7880
$this->attribute->saveAttribute($invoice, $invoiceAttributesForSave);
7981
}
8082
}
81-
if ($orderInvoiceHasChanges) {
82-
if (!$this->globalConfig->getValue('dev/grid/async_indexing')) {
83-
$this->gridPool->refreshByOrderId($order->getId());
84-
}
83+
if ($orderInvoiceHasChanges && !$this->globalConfig->getValue('dev/grid/async_indexing')) {
84+
$this->gridPool->refreshByOrderId($order->getId());
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)