Skip to content

Commit 1e2c27d

Browse files
Feature/fix magento health index meta catalog (#258)
* update modifier to public * Add protected modifier * resolve static test for Meta_Catalog module * reverted applied public modifier * Fix constructor argement for unit test * fix unit test - call on null setAccessToken() * reverted fix for setAccessToken and fix with correct variable --------- Co-authored-by: Ben Giamarino <[email protected]>
1 parent 4de64b6 commit 1e2c27d

File tree

16 files changed

+25
-33
lines changed

16 files changed

+25
-33
lines changed

app/code/Meta/Catalog/Controller/Adminhtml/Diagnostic/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Index extends \Magento\Backend\App\Action implements HttpGetActionInterfac
2727
/**
2828
* @var PageFactory
2929
*/
30-
protected $resultPageFactory;
30+
private $resultPageFactory;
3131

3232
/**
3333
* Constructor

app/code/Meta/Catalog/Cron/CategorySyncCron.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,31 @@
1717

1818
namespace Meta\Catalog\Cron;
1919

20-
use Meta\BusinessExtension\Helper\FBEHelper;
2120
use Meta\BusinessExtension\Model\System\Config as SystemConfig;
2221
use Meta\Catalog\Model\Feed\CategoryCollection;
2322

2423
class CategorySyncCron
2524
{
26-
/**
27-
* @var FBEHelper
28-
*/
29-
protected $fbeHelper;
30-
3125
/**
3226
* @var CategoryCollection
3327
*/
34-
protected $categoryCollection;
28+
private $categoryCollection;
3529

3630
/**
3731
* @var SystemConfig
3832
*/
39-
protected $systemConfig;
33+
private $systemConfig;
4034

4135
/**
4236
* CategorySyncCron constructor
4337
*
44-
* @param FBEHelper $fbeHelper
4538
* @param CategoryCollection $categoryCollection
4639
* @param SystemConfig $systemConfig
4740
*/
4841
public function __construct(
49-
FBEHelper $fbeHelper,
5042
CategoryCollection $categoryCollection,
5143
SystemConfig $systemConfig
5244
) {
53-
$this->fbeHelper = $fbeHelper;
5445
$this->categoryCollection = $categoryCollection;
5546
$this->systemConfig = $systemConfig;
5647
}

app/code/Meta/Catalog/Cron/UploadInventory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(SystemConfig $systemConfig, Uploader $uploader, Logg
5959
* @return $this
6060
* @throws LocalizedException
6161
*/
62-
protected function uploadForStore($storeId)
62+
private function uploadForStore($storeId)
6363
{
6464
if ($this->isUploadEnabled($storeId)) {
6565
$this->uploader->uploadInventory($storeId);

app/code/Meta/Catalog/Cron/UploadProductFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(SystemConfig $systemConfig, Uploader $uploader, Logg
5858
* @return $this
5959
* @throws LocalizedException
6060
*/
61-
protected function uploadForStore($storeId)
61+
private function uploadForStore($storeId)
6262
{
6363
if ($this->isFeedUploadEnabled($storeId)) {
6464
$this->uploader->uploadFullCatalog($storeId);

app/code/Meta/Catalog/Helper/Product/Identifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(SystemConfig $systemConfig, ProductRepository $produ
5252
* @param ProductInterface $product
5353
* @return bool|int|string
5454
*/
55-
protected function getProductIdentifier(ProductInterface $product)
55+
private function getProductIdentifier(ProductInterface $product)
5656
{
5757
if ($this->identifierAttr === IdentifierConfig::PRODUCT_IDENTIFIER_SKU) {
5858
return $product->getSku();

app/code/Meta/Catalog/Model/Product/Feed/Builder/MultiSourceInventory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MultiSourceInventory implements InventoryInterface
4343
/**
4444
* @var SystemConfig
4545
*/
46-
protected $systemConfig;
46+
private $systemConfig;
4747

4848
/**
4949
* @var StockByWebsiteIdResolverInterface

app/code/Meta/Catalog/Model/Product/Feed/Builder/Tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Tools
3030
/**
3131
* @var PriceCurrencyInterface
3232
*/
33-
protected $priceCurrency;
33+
private $priceCurrency;
3434

3535
/**
3636
* @var Escaper

app/code/Meta/Catalog/Model/Product/Feed/ProductRetriever/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Configurable implements ProductRetrieverInterface
3232
/**
3333
* @var int
3434
*/
35-
protected $storeId;
35+
private $storeId;
3636

3737
/**
3838
* @var FBEHelper

app/code/Meta/Catalog/Model/Product/Feed/Uploader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class Uploader
2828
/**
2929
* @var SystemConfig
3030
*/
31-
protected $systemConfig;
31+
private $systemConfig;
3232

3333
/**
3434
* @var MethodBatchApi
3535
*/
36-
protected $methodBatchApi;
36+
private $methodBatchApi;
3737

3838
/**
3939
* @var MethodFeedApi
4040
*/
41-
protected $methodFeedApi;
41+
private $methodFeedApi;
4242

4343
/**
4444
* @param SystemConfig $systemConfig

app/code/Meta/Catalog/Observer/ProcessCategoryAfterDeleteEventObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class ProcessCategoryAfterDeleteEventObserver implements ObserverInterface
2828
/**
2929
* @var FBEHelper
3030
*/
31-
protected $fbeHelper;
31+
private $fbeHelper;
3232
/**
3333
* @var SystemConfig
3434
*/
35-
protected $systemConfig;
35+
private $systemConfig;
3636

3737
/**
3838
* Constructor

0 commit comments

Comments
 (0)