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.
 */
namespace Magento\Backend\Model\Translate\Inline;

/**
 * Backend Inline Translation config
 * @api
 * @since 100.0.2
 */
class Config implements \Magento\Framework\Translate\Inline\ConfigInterface
{
    /**
     * @var \Magento\Backend\App\ConfigInterface
     */
    protected $config;

    /**
     * @var \Magento\Developer\Helper\Data
     */
    protected $devHelper;

    /**
     * @param \Magento\Backend\App\ConfigInterface $config
     * @param \Magento\Developer\Helper\Data $devHelper
     */
    public function __construct(
        \Magento\Backend\App\ConfigInterface $config,
        \Magento\Developer\Helper\Data $devHelper
    ) {
        $this->config = $config;
        $this->devHelper = $devHelper;
    }

    /**
     * {@inheritdoc}
     */
    public function isActive($scope = null)
    {
        return $this->config->isSetFlag('dev/translate_inline/active_admin');
    }

    /**
     * {@inheritdoc}
     */
    public function isDevAllowed($scope = null)
    {
        return $this->devHelper->isDevAllowed($scope);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Backend\Model\Translate\Inline;

/**
 * Backend Inline Translation config
 * @api
 * @since 100.0.2
 */
class Config implements \Magento\Framework\Translate\Inline\ConfigInterface
{
    /**
     * @var \Magento\Backend\App\ConfigInterface
     */
    protected $config;

    /**
     * @var \Magento\Developer\Helper\Data
     */
    protected $devHelper;

    /**
     * @param \Magento\Backend\App\ConfigInterface $config
     * @param \Magento\Developer\Helper\Data $devHelper
     */
    public function __construct(
        \Magento\Backend\App\ConfigInterface $config,
        \Magento\Developer\Helper\Data $devHelper
    ) {
        $this->config = $config;
        $this->devHelper = $devHelper;
    }

    /**
     * {@inheritdoc}
     */
    public function isActive($scope = null)
    {
        return $this->config->isSetFlag('dev/translate_inline/active_admin');
    }

    /**
     * {@inheritdoc}
     */
    public function isDevAllowed($scope = null)
    {
        return $this->devHelper->isDevAllowed($scope);
    }
}

Function Calls

None

Variables

None

Stats

MD5 04b58c5204be14daec7ff69e98bf861e
Eval Count 0
Decode Time 93 ms