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\System\Config\Backend;
/**
* Minimum product qty backend model
*/
class Minqty extends \Magento\Framework\App\Config\Value
{
/**
* Validate minimum product qty value
*
* @return $this
*/
public function beforeSave()
{
parent::beforeSave();
$minQty = (int) $this->getValue() >= 0 ? (int) $this->getValue() : (int) $this->getOldValue();
$this->setValue((string) $minQty);
return $this;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogInventory\Model\System\Config\Backend;
/**
* Minimum product qty backend model
*/
class Minqty extends \Magento\Framework\App\Config\Value
{
/**
* Validate minimum product qty value
*
* @return $this
*/
public function beforeSave()
{
parent::beforeSave();
$minQty = (int) $this->getValue() >= 0 ? (int) $this->getValue() : (int) $this->getOldValue();
$this->setValue((string) $minQty);
return $this;
}
}
Function Calls
None |
Stats
MD5 | 6e4bd9be3b03273ca164d77f941a1a94 |
Eval Count | 0 |
Decode Time | 106 ms |