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\CatalogInventory\Model\Indexer\Stock\Action;
/**
* Class Rows reindex action for mass actions
*/
class Rows extends \Magento\CatalogInventory\Model\Indexer\Stock\AbstractAction
{
/**
* Execute Rows reindex
*
* @param array $ids
* @throws \Magento\Framework\Exception\LocalizedException
*
* @return void
*/
public function execute($ids)
{
if (empty($ids)) {
throw new \Magento\Framework\Exception\LocalizedException(
__('Could not rebuild index for empty products array')
);
}
try {
$this->_reindexRows($ids);
} catch (\Exception $e) {
throw new \Magento\Framework\Exception\LocalizedException(__($e->getMessage()), $e);
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogInventory\Model\Indexer\Stock\Action;
/**
* Class Rows reindex action for mass actions
*/
class Rows extends \Magento\CatalogInventory\Model\Indexer\Stock\AbstractAction
{
/**
* Execute Rows reindex
*
* @param array $ids
* @throws \Magento\Framework\Exception\LocalizedException
*
* @return void
*/
public function execute($ids)
{
if (empty($ids)) {
throw new \Magento\Framework\Exception\LocalizedException(
__('Could not rebuild index for empty products array')
);
}
try {
$this->_reindexRows($ids);
} catch (\Exception $e) {
throw new \Magento\Framework\Exception\LocalizedException(__($e->getMessage()), $e);
}
}
}
Function Calls
| None |
Stats
| MD5 | f21229ded418165968371f9400dccdb6 |
| Eval Count | 0 |
| Decode Time | 109 ms |