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 declare(strict_types=1); /* * This is part of the webuni/commonmark-attributes-ex..
Decoded Output download
<?php
declare(strict_types=1);
/*
* This is part of the webuni/commonmark-attributes-extension package.
*
* (c) Martin Haso <[email protected]>
* (c) Webuni s.r.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Webuni\CommonMark\AttributesExtension;
use League\CommonMark\Block\Element\AbstractBlock;
use League\CommonMark\ContextInterface;
use League\CommonMark\Cursor;
final class Attributes extends AbstractBlock
{
private $attributes;
public function __construct(array $attributes)
{
$this->attributes = $attributes;
}
public function getAttributes(): array
{
return $this->attributes;
}
public function canContain(AbstractBlock $block): bool
{
return false;
}
public function isCode(): bool
{
return false;
}
public function matchesNextLine(Cursor $cursor): bool
{
if ($cursor->isBlank()) {
$this->setLastLineBlank(true);
} else {
$this->setLastLineBlank(false);
}
return false;
}
public function shouldLastLineBeBlank(Cursor $cursor, int $currentLineNumber): bool
{
return false;
}
public function handleRemainingContents(ContextInterface $context, Cursor $cursor): void
{
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/*
* This is part of the webuni/commonmark-attributes-extension package.
*
* (c) Martin Haso <[email protected]>
* (c) Webuni s.r.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Webuni\CommonMark\AttributesExtension;
use League\CommonMark\Block\Element\AbstractBlock;
use League\CommonMark\ContextInterface;
use League\CommonMark\Cursor;
final class Attributes extends AbstractBlock
{
private $attributes;
public function __construct(array $attributes)
{
$this->attributes = $attributes;
}
public function getAttributes(): array
{
return $this->attributes;
}
public function canContain(AbstractBlock $block): bool
{
return false;
}
public function isCode(): bool
{
return false;
}
public function matchesNextLine(Cursor $cursor): bool
{
if ($cursor->isBlank()) {
$this->setLastLineBlank(true);
} else {
$this->setLastLineBlank(false);
}
return false;
}
public function shouldLastLineBeBlank(Cursor $cursor, int $currentLineNumber): bool
{
return false;
}
public function handleRemainingContents(ContextInterface $context, Cursor $cursor): void
{
}
}
Function Calls
None |
Stats
MD5 | 9760db9f95b49aafa96675e5568db8f2 |
Eval Count | 0 |
Decode Time | 92 ms |