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;

/**
 * Filter custom attributes for product using the excluded list
 */
class FilterProductCustomAttribute
{
    /**
     * @var array
     */
    private $excludedList;

    /**
     * @param array $excludedList
     */
    public function __construct(array $excludedList = [])
    {
        $this->excludedList = $excludedList;
    }

    /**
     * Delete custom attribute
     *
     * @param array $attributes set objects attributes @example ['attribute_code'=>'attribute_object']
     * @return array
     */
    public function execute(array $attributes): array
    {
        return array_diff_key($attributes, array_flip($this->excludedList));
    }
}
 ?>

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;

/**
 * Filter custom attributes for product using the excluded list
 */
class FilterProductCustomAttribute
{
    /**
     * @var array
     */
    private $excludedList;

    /**
     * @param array $excludedList
     */
    public function __construct(array $excludedList = [])
    {
        $this->excludedList = $excludedList;
    }

    /**
     * Delete custom attribute
     *
     * @param array $attributes set objects attributes @example ['attribute_code'=>'attribute_object']
     * @return array
     */
    public function execute(array $attributes): array
    {
        return array_diff_key($attributes, array_flip($this->excludedList));
    }
}

Function Calls

None

Variables

None

Stats

MD5 1bd0e4fa15e9424d4bf03f24738c6546
Eval Count 0
Decode Time 112 ms