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 namespace Kanboard\Helper; use Kanboard\Core\Base; use Kanboard\Model\UserMetadata..
Decoded Output download
<?php
namespace Kanboard\Helper;
use Kanboard\Core\Base;
use Kanboard\Model\UserMetadataModel;
/**
* Class CommentHelper
*
* @package Kanboard\Helper
* @author Frederic Guillot
*/
class CommentHelper extends Base
{
public function toggleSorting()
{
$oldDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');
$newDirection = $oldDirection === 'ASC' ? 'DESC' : 'ASC';
$this->userMetadataCacheDecorator->set(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, $newDirection);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Kanboard\Helper;
use Kanboard\Core\Base;
use Kanboard\Model\UserMetadataModel;
/**
* Class CommentHelper
*
* @package Kanboard\Helper
* @author Frederic Guillot
*/
class CommentHelper extends Base
{
public function toggleSorting()
{
$oldDirection = $this->userMetadataCacheDecorator->get(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, 'ASC');
$newDirection = $oldDirection === 'ASC' ? 'DESC' : 'ASC';
$this->userMetadataCacheDecorator->set(UserMetadataModel::KEY_COMMENT_SORTING_DIRECTION, $newDirection);
}
}
Function Calls
None |
Stats
MD5 | 1cba17fe2c6df3b032187cc032ea90c8 |
Eval Count | 0 |
Decode Time | 122 ms |