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\Compiler\NodeCompiler; use Phug\Compiler\AbstractNodeCompiler; use ..
Decoded Output download
<?php
namespace Phug\Compiler\NodeCompiler;
use Phug\Compiler\AbstractNodeCompiler;
use Phug\Formatter\Element\DoctypeElement;
use Phug\Formatter\ElementInterface;
use Phug\Parser\Node\DoctypeNode;
use Phug\Parser\NodeInterface;
class DoctypeNodeCompiler extends AbstractNodeCompiler
{
public function compileNode(NodeInterface $node, ElementInterface $parent = null)
{
$compiler = $this->getCompiler();
$compiler->assert(
$node instanceof DoctypeNode,
'Unexpected '.get_class($node).' given to doctype compiler.',
$node
);
/** @var DoctypeNode $node */
$name = $node->getName() ?: $compiler->getOption('default_doctype');
return new DoctypeElement($name, $node);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Phug\Compiler\NodeCompiler;
use Phug\Compiler\AbstractNodeCompiler;
use Phug\Formatter\Element\DoctypeElement;
use Phug\Formatter\ElementInterface;
use Phug\Parser\Node\DoctypeNode;
use Phug\Parser\NodeInterface;
class DoctypeNodeCompiler extends AbstractNodeCompiler
{
public function compileNode(NodeInterface $node, ElementInterface $parent = null)
{
$compiler = $this->getCompiler();
$compiler->assert(
$node instanceof DoctypeNode,
'Unexpected '.get_class($node).' given to doctype compiler.',
$node
);
/** @var DoctypeNode $node */
$name = $node->getName() ?: $compiler->getOption('default_doctype');
return new DoctypeElement($name, $node);
}
}
Function Calls
None |
Stats
MD5 | b988f178a7cb5d21fcaf6675dc9ca909 |
Eval Count | 0 |
Decode Time | 94 ms |