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\AdminNotification\Model\System\Message\Media\Synchronization;
/**
* Media synchronization success message class.
*
* @api
* @since 100.0.2
*/
class Success extends \Magento\AdminNotification\Model\System\Message\Media\AbstractSynchronization
{
/**
* Message identity
*
* @var string
*/
protected $_identity = 'MEDIA_SYNCHRONIZATION_SUCCESS';
/**
* Check whether
*
* @return bool
*/
protected function _shouldBeDisplayed()
{
$state = $this->_syncFlag->getState();
$data = $this->_syncFlag->getFlagData();
$hasErrors = !empty($data['has_errors']);
return !$hasErrors && \Magento\MediaStorage\Model\File\Storage\Flag::STATE_FINISHED == $state;
}
/**
* Retrieve message text
*
* @return \Magento\Framework\Phrase
*/
public function getText()
{
return __('Synchronization of media storages has been completed.');
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Copyright Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\AdminNotification\Model\System\Message\Media\Synchronization;
/**
* Media synchronization success message class.
*
* @api
* @since 100.0.2
*/
class Success extends \Magento\AdminNotification\Model\System\Message\Media\AbstractSynchronization
{
/**
* Message identity
*
* @var string
*/
protected $_identity = 'MEDIA_SYNCHRONIZATION_SUCCESS';
/**
* Check whether
*
* @return bool
*/
protected function _shouldBeDisplayed()
{
$state = $this->_syncFlag->getState();
$data = $this->_syncFlag->getFlagData();
$hasErrors = !empty($data['has_errors']);
return !$hasErrors && \Magento\MediaStorage\Model\File\Storage\Flag::STATE_FINISHED == $state;
}
/**
* Retrieve message text
*
* @return \Magento\Framework\Phrase
*/
public function getText()
{
return __('Synchronization of media storages has been completed.');
}
}
Function Calls
None |
Stats
MD5 | 2d6b89dd5fda3842a2b1f0baa17c9086 |
Eval Count | 0 |
Decode Time | 148 ms |