Skip to content

Commit 45a4225

Browse files
authored
Small fixes, removing unused variables (#579)
1 parent 7bf905e commit 45a4225

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

app/code/Meta/BusinessExtension/Model/System/Config.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
*/
3737
class Config
3838
{
39-
public const META_PRODUCT_SET_ID = 'meta_product_set_id';
40-
public const CATEGORY_SYNC_TO_FACEBOOK = 'sync_to_facebook_catalog';
4139
private const VERSION_CACHE_KEY = 'meta-business-extension-version';
4240
private const EXTENSION_PACKAGE_NAME = 'meta/meta-for-magento2';
4341

@@ -77,8 +75,6 @@ class Config
7775
public const XML_PATH_FACEBOOK_BUSINESS_EXTENSION_ACCESS_TOKEN = 'facebook/business_extension/access_token';
7876
public const XML_PATH_FACEBOOK_BUSINESS_EXTENSION_CLIENT_ACCESS_TOKEN =
7977
'facebook/business_extension/client_access_token';
80-
public const XML_PATH_FACEBOOK_BUSINESS_EXTENSION_PAGE_ACCESS_TOKEN =
81-
'facebook/business_extension/page_access_token';
8278
private const XML_PATH_FACEBOOK_BUSINESS_EXTENSION_OUT_OF_STOCK_THRESHOLD =
8379
'facebook/catalog_management/out_of_stock_threshold';
8480

app/code/Meta/Sales/Model/Mapper/OrderItemMapper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
namespace Meta\Sales\Model\Mapper;
2222

2323
use Exception;
24-
use GuzzleHttp\Exception\GuzzleException;
2524
use Magento\Catalog\Api\Data\ProductInterface;
2625
use Magento\Catalog\Model\ProductRepository;
2726
use Magento\ConfigurableProduct\Model\Product\Type\Configurable as ConfigurableType;

app/code/Meta/Sales/Model/Mapper/OrderMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public function map(array $data, int $storeId): Order
165165
->setBillingAddress($billingAddress)
166166
->setShippingAddress($shippingAddress)
167167
->setStoreId($storeId)
168-
->setPayment($payment)
169-
->setCanSendNewEmailFlag(false);
168+
->setCanSendNewEmailFlag(false)
169+
->setPayment($payment);
170170

171171
$this->applyShippingToOrder($order, $data, $storeId);
172172
$this->applyItemsToOrder($order, $data, $storeId);

0 commit comments

Comments
 (0)