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 Phug\Parser\TokenHandler; use Phug\Lexer\Token\ConditionalToken; use Phu..
Decoded Output download
<?php
namespace Phug\Parser\TokenHandler;
use Phug\Lexer\Token\ConditionalToken;
use Phug\Lexer\TokenInterface;
use Phug\Parser\Node\ConditionalNode;
use Phug\Parser\State;
use Phug\Parser\TokenHandlerInterface;
class ConditionalTokenHandler implements TokenHandlerInterface
{
public function handleToken(TokenInterface $token, State $state)
{
if (!($token instanceof ConditionalToken)) {
throw new \RuntimeException(
'You can only pass conditional tokens to this token handler'
);
}
/** @var ConditionalNode $node */
$node = $state->createNode(ConditionalNode::class, $token);
$node->setSubject($token->getSubject());
$node->setName($token->getName());
$state->setCurrentNode($node);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Phug\Parser\TokenHandler;
use Phug\Lexer\Token\ConditionalToken;
use Phug\Lexer\TokenInterface;
use Phug\Parser\Node\ConditionalNode;
use Phug\Parser\State;
use Phug\Parser\TokenHandlerInterface;
class ConditionalTokenHandler implements TokenHandlerInterface
{
public function handleToken(TokenInterface $token, State $state)
{
if (!($token instanceof ConditionalToken)) {
throw new \RuntimeException(
'You can only pass conditional tokens to this token handler'
);
}
/** @var ConditionalNode $node */
$node = $state->createNode(ConditionalNode::class, $token);
$node->setSubject($token->getSubject());
$node->setName($token->getName());
$state->setCurrentNode($node);
}
}
Function Calls
None |
Stats
MD5 | 0103c8af08e0cd79c9ac3b69decee56c |
Eval Count | 0 |
Decode Time | 76 ms |