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\CatalogGraphQl\Model;

use \Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;

/**
 * Resolver for aggregation option type.
 */
class AggregationOptionTypeResolver implements TypeResolverInterface
{
    /**
     * @inheritdoc
     */
    public function resolveType(array $data) : string
    {
        return isset($data['value'])
            && isset($data['label'])
            && isset($data['count'])
            && count($data) == 3
                ? 'AggregationOption'
                : '';
    }
}
 ?>

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\CatalogGraphQl\Model;

use \Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;

/**
 * Resolver for aggregation option type.
 */
class AggregationOptionTypeResolver implements TypeResolverInterface
{
    /**
     * @inheritdoc
     */
    public function resolveType(array $data) : string
    {
        return isset($data['value'])
            && isset($data['label'])
            && isset($data['count'])
            && count($data) == 3
                ? 'AggregationOption'
                : '';
    }
}

Function Calls

None

Variables

None

Stats

MD5 0cada9c07d11fe37ec3e857114bd30d0
Eval Count 0
Decode Time 83 ms