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\Category\Attribute\Backend;

use Magento\Catalog\Model\AbstractModel;
use Magento\Catalog\Model\Attribute\Backend\AbstractLayoutUpdate;
use Magento\Catalog\Model\Category;
use Magento\Catalog\Model\Category\Attribute\LayoutUpdateManager;

/**
 * Allows to select a layout file to merge when rendering the category's page.
 */
class LayoutUpdate extends AbstractLayoutUpdate
{

    /**
     * @var LayoutUpdateManager
     */
    private $manager;

    /**
     * @param LayoutUpdateManager $manager
     */
    public function __construct(LayoutUpdateManager $manager)
    {
        $this->manager = $manager;
    }

    /**
     * @inheritDoc
     *
     * @param AbstractModel|Category $forModel
     */
    protected function listAvailableValues(AbstractModel $forModel): array
    {
        return $this->manager->fetchAvailableFiles($forModel);
    }
}
 ?>

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\Category\Attribute\Backend;

use Magento\Catalog\Model\AbstractModel;
use Magento\Catalog\Model\Attribute\Backend\AbstractLayoutUpdate;
use Magento\Catalog\Model\Category;
use Magento\Catalog\Model\Category\Attribute\LayoutUpdateManager;

/**
 * Allows to select a layout file to merge when rendering the category's page.
 */
class LayoutUpdate extends AbstractLayoutUpdate
{

    /**
     * @var LayoutUpdateManager
     */
    private $manager;

    /**
     * @param LayoutUpdateManager $manager
     */
    public function __construct(LayoutUpdateManager $manager)
    {
        $this->manager = $manager;
    }

    /**
     * @inheritDoc
     *
     * @param AbstractModel|Category $forModel
     */
    protected function listAvailableValues(AbstractModel $forModel): array
    {
        return $this->manager->fetchAvailableFiles($forModel);
    }
}

Function Calls

None

Variables

None

Stats

MD5 3f71ed544c0465eca5552bceac544665
Eval Count 0
Decode Time 138 ms