Skip to content

Commit

Permalink
Hotfix: typo in function rename (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-loup committed Oct 12, 2023
1 parent 8e24c22 commit 0ecab4b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function executeForJson(): array
$storeId = $storeParam;
}

if (!$this->systemConfig->isOrdersSyncEnabled($storeId)) {
if (!$this->systemConfig->isOrderSyncEnabled($storeId)) {
$response['success'] = false;
$response['error_message'] = __('Enable order sync before pulling orders.');
return $response;
Expand Down
2 changes: 1 addition & 1 deletion app/code/Meta/Sales/Cron/SyncOrders.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(
*/
private function pullOrdersForStore(int $storeId)
{
if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Meta/Sales/Cron/SyncRefundsAndCancellations.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(
*/
private function pullRefundsAndCancellationsForStore(int $storeId)
{
if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down
10 changes: 5 additions & 5 deletions app/code/Meta/Sales/Observer/Facebook/OrderCreateAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ class OrderCreateAfter implements ObserverInterface
* @param Subscriber $subscriber
*/
public function __construct(
SystemConfig $systemConfig,
LoggerInterface $logger,
FBEHelper $fbeHelper,
SystemConfig $systemConfig,
LoggerInterface $logger,
FBEHelper $fbeHelper,
SubscriptionManager $subscriptionManager,
Subscriber $subscriber
Subscriber $subscriber
) {
$this->systemConfig = $systemConfig;
$this->logger = $logger;
Expand All @@ -94,7 +94,7 @@ public function execute(Observer $observer)
$facebookOrder = $observer->getEvent()->getFacebookOrder();
$storeId = $order->getStoreId();

if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Meta/Sales/Observer/Order/Cancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function execute(Observer $observer)
$order = $observer->getEvent()->getOrder();
$storeId = $order->getStoreId();

if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions app/code/Meta/Sales/Observer/Order/MarkAsShipped.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class MarkAsShipped implements ObserverInterface
* @param Shipper $shipper
*/
public function __construct(
SystemConfig $systemConfig,
SystemConfig $systemConfig,
LoggerInterface $logger,
Shipper $shipper
Shipper $shipper
) {
$this->systemConfig = $systemConfig;
$this->logger = $logger;
Expand Down Expand Up @@ -88,7 +88,7 @@ public function execute(Observer $observer)
return;
}

if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Meta/Sales/Observer/Order/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function execute(Observer $observer)

$storeId = $payment->getOrder()->getStoreId();

if (!($this->systemConfig->isOrdersSyncEnabled($storeId)
if (!($this->systemConfig->isOrderSyncEnabled($storeId)
&& $this->systemConfig->isOnsiteCheckoutEnabled($storeId))) {
return;
}
Expand Down

0 comments on commit 0ecab4b

Please sign in to comment.