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\Block\Cache\Grid\Massaction;
use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface;
use Magento\Framework\App\State;
/**
* Class checks that action can be displayed on massaction list
*/
class ProductionModeVisibilityChecker implements VisibilityCheckerInterface
{
/**
* @var State
*/
private $state;
/**
* @param State $state
*/
public function __construct(State $state)
{
$this->state = $state;
}
/**
* {@inheritdoc}
*/
public function isVisible()
{
return $this->state->getMode() !== State::MODE_PRODUCTION;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Backend\Block\Cache\Grid\Massaction;
use Magento\Backend\Block\Widget\Grid\Massaction\VisibilityCheckerInterface;
use Magento\Framework\App\State;
/**
* Class checks that action can be displayed on massaction list
*/
class ProductionModeVisibilityChecker implements VisibilityCheckerInterface
{
/**
* @var State
*/
private $state;
/**
* @param State $state
*/
public function __construct(State $state)
{
$this->state = $state;
}
/**
* {@inheritdoc}
*/
public function isVisible()
{
return $this->state->getMode() !== State::MODE_PRODUCTION;
}
}
Function Calls
| None |
Stats
| MD5 | 7ab0ef21e8d1d2aad078881a30233d8d |
| Eval Count | 0 |
| Decode Time | 98 ms |