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 /** * This file is part of the reliforp/reli-prof package. * * (c) sji <sji@sj-i..
Decoded Output download
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Output\TraceFormatter\Templated;
use Reli\Inspector\Output\TraceFormatter\CallTraceFormatter;
use Reli\Inspector\Settings\OutputSettings\OutputSettings;
class TraceFormatterFactory
{
/** @var array<string, TemplatedCallTraceFormatter> */
private array $cache = [];
public function __construct(
private TemplatePathResolverInterface $template_path_resolver
) {
}
public function createFromSettings(OutputSettings $settings): CallTraceFormatter
{
if (!isset($this->cache[$settings->template_name])) {
$this->cache[$settings->template_name] = new TemplatedCallTraceFormatter(
$this->template_path_resolver,
$settings->template_name
);
}
return $this->cache[$settings->template_name];
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* This file is part of the reliforp/reli-prof package.
*
* (c) sji <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Reli\Inspector\Output\TraceFormatter\Templated;
use Reli\Inspector\Output\TraceFormatter\CallTraceFormatter;
use Reli\Inspector\Settings\OutputSettings\OutputSettings;
class TraceFormatterFactory
{
/** @var array<string, TemplatedCallTraceFormatter> */
private array $cache = [];
public function __construct(
private TemplatePathResolverInterface $template_path_resolver
) {
}
public function createFromSettings(OutputSettings $settings): CallTraceFormatter
{
if (!isset($this->cache[$settings->template_name])) {
$this->cache[$settings->template_name] = new TemplatedCallTraceFormatter(
$this->template_path_resolver,
$settings->template_name
);
}
return $this->cache[$settings->template_name];
}
}
Function Calls
None |
Stats
MD5 | 67f9112135af9b7d6f2df85b0b8fadc5 |
Eval Count | 0 |
Decode Time | 91 ms |