Decoded Output
Download<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\CatalogImportExport\Model\Import\Product;
use Magento\Framework\Indexer\IndexerRegistry;
/**
* Imported product stock manager
*/
class StockProcessor
{
/**
* @var IndexerRegistry
*/
private $indexerRegistry;
/**
* @var array
*/
private $indexers;
/**
* Initializes dependencies.
*
* @param IndexerRegistry $indexerRegistry
* @param array $indexers
*/
public function __construct(
IndexerRegistry $indexerRegistry,
array $indexers = []
) {
$this->indexerRegistry = $indexerRegistry;
$this->indexers = array_filter($indexers);
}
/**
* Reindex products by ids
*
* @param array $ids
* @return void
*/
public function reindexList(array $ids = []): void
{
if ($ids) {
foreach ($this->indexers as $indexerName) {
$indexer = $this->indexerRegistry->get($indexerName);
if (!$indexer->isScheduled()) {
$indexer->reindexList($ids);
}
}
}
}
}
?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 0dea4c34fdadfec3 |
|---|---|
| Eval Count | 0 |
| Decode Time | 96 ms |
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\CatalogImportExport\Model\Import\Product;
use Magento\Framework\Indexer\IndexerRegistry;
/**
* Imported product stock manager
*/
class StockProcessor
{
/**
* @var IndexerRegistry
*/
private $indexerRegistry;
/**
* @var array
*/
private $indexers;
/**
* Initializes dependencies.
*
* @param IndexerRegistry $indexerRegistry
* @param array $indexers
*/
public function __construct(
IndexerRegistry $indexerRegistry,
array $indexers = []
) {
$this->indexerRegistry = $indexerRegistry;
$this->indexers = array_filter($indexers);
}
/**
* Reindex products by ids
*
* @param array $ids
* @return void
*/
public function reindexList(array $ids = []): void
{
if ($ids) {
foreach ($this->indexers as $indexerName) {
$indexer = $this->indexerRegistry->get($indexerName);
if (!$indexer->isScheduled()) {
$indexer->reindexList($ids);
}
}
}
}
}