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.
*/
declare(strict_types=1);
namespace Magento\Backend\Block\DataProviders;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Backend\Model\Image\UploadResizeConfigInterface;
/**
* Provides additional data for image uploader
*/
class ImageUploadConfig implements ArgumentInterface
{
/**
* @var UploadResizeConfigInterface
*/
private $imageUploadConfig;
/**
* @param UploadResizeConfigInterface $imageUploadConfig
*/
public function __construct(UploadResizeConfigInterface $imageUploadConfig)
{
$this->imageUploadConfig = $imageUploadConfig;
}
/**
* Get image resize configuration
*
* @return int
*/
public function getIsResizeEnabled(): int
{
return (int)$this->imageUploadConfig->isResizeEnabled();
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Backend\Block\DataProviders;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Backend\Model\Image\UploadResizeConfigInterface;
/**
* Provides additional data for image uploader
*/
class ImageUploadConfig implements ArgumentInterface
{
/**
* @var UploadResizeConfigInterface
*/
private $imageUploadConfig;
/**
* @param UploadResizeConfigInterface $imageUploadConfig
*/
public function __construct(UploadResizeConfigInterface $imageUploadConfig)
{
$this->imageUploadConfig = $imageUploadConfig;
}
/**
* Get image resize configuration
*
* @return int
*/
public function getIsResizeEnabled(): int
{
return (int)$this->imageUploadConfig->isResizeEnabled();
}
}
Function Calls
| None |
Stats
| MD5 | a20f1bed62df16d5e2d8e24fecf7a751 |
| Eval Count | 0 |
| Decode Time | 116 ms |