Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..
Decoded Output download
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogImportExport\Model\Indexer\Product\Eav\Plugin;
class Import
{
/**
* @var \Magento\Catalog\Model\Indexer\Product\Eav\Processor
*/
protected $_indexerEavProcessor;
/**
* @param \Magento\Catalog\Model\Indexer\Product\Eav\Processor $indexerEavProcessor
*/
public function __construct(\Magento\Catalog\Model\Indexer\Product\Eav\Processor $indexerEavProcessor)
{
$this->_indexerEavProcessor = $indexerEavProcessor;
}
/**
* After import handler
*
* @param \Magento\ImportExport\Model\Import $subject
* @param Object $import
*
* @return mixed
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterImportSource(\Magento\ImportExport\Model\Import $subject, $import)
{
if (!$this->_indexerEavProcessor->isIndexerScheduled()) {
$this->_indexerEavProcessor->markIndexerAsInvalid();
}
return $import;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogImportExport\Model\Indexer\Product\Eav\Plugin;
class Import
{
/**
* @var \Magento\Catalog\Model\Indexer\Product\Eav\Processor
*/
protected $_indexerEavProcessor;
/**
* @param \Magento\Catalog\Model\Indexer\Product\Eav\Processor $indexerEavProcessor
*/
public function __construct(\Magento\Catalog\Model\Indexer\Product\Eav\Processor $indexerEavProcessor)
{
$this->_indexerEavProcessor = $indexerEavProcessor;
}
/**
* After import handler
*
* @param \Magento\ImportExport\Model\Import $subject
* @param Object $import
*
* @return mixed
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function afterImportSource(\Magento\ImportExport\Model\Import $subject, $import)
{
if (!$this->_indexerEavProcessor->isIndexerScheduled()) {
$this->_indexerEavProcessor->markIndexerAsInvalid();
}
return $import;
}
}
Function Calls
None |
Stats
MD5 | abb49131feff683207d33b7490db5efe |
Eval Count | 0 |
Decode Time | 101 ms |