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\Catalog\Model\Config\Source\Web;

use Magento\Catalog\Model\Config\CatalogMediaConfig;

/**
 * Option provider for catalog media URL format system setting.
 */
class CatalogMediaUrlFormat implements \Magento\Framework\Data\OptionSourceInterface
{
    /**
     * Get a list of supported catalog media URL formats.
     *
     * @codeCoverageIgnore
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            [
                'value' => CatalogMediaConfig::IMAGE_OPTIMIZATION_PARAMETERS,
                'label' => __('Image optimization based on query parameters')
            ],
            ['value' => CatalogMediaConfig::HASH, 'label' => __('Unique hash per image variant (Legacy mode)')]
        ];
    }
}
 ?>

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\Catalog\Model\Config\Source\Web;

use Magento\Catalog\Model\Config\CatalogMediaConfig;

/**
 * Option provider for catalog media URL format system setting.
 */
class CatalogMediaUrlFormat implements \Magento\Framework\Data\OptionSourceInterface
{
    /**
     * Get a list of supported catalog media URL formats.
     *
     * @codeCoverageIgnore
     * @return array
     */
    public function toOptionArray(): array
    {
        return [
            [
                'value' => CatalogMediaConfig::IMAGE_OPTIMIZATION_PARAMETERS,
                'label' => __('Image optimization based on query parameters')
            ],
            ['value' => CatalogMediaConfig::HASH, 'label' => __('Unique hash per image variant (Legacy mode)')]
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 75846dd0363610a448a558bf993366c0
Eval Count 0
Decode Time 94 ms