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 Pagekit\Log\Handler; use DebugBar\DataCollector\DataCollectorInterface; ..
Decoded Output download
<?php
namespace Pagekit\Log\Handler;
use DebugBar\DataCollector\DataCollectorInterface;
use Monolog\Handler\AbstractHandler;
class DebugBarHandler extends AbstractHandler implements DataCollectorInterface
{
/**
* @var array
*/
protected $records = [];
/**
* {@inheritdoc}
*/
public function handle(array $record)
{
if ($record['level'] < $this->level) {
return false;
}
$keys = [
'message',
'level',
'level_name',
'channel'
];
$this->records[] = array_intersect_key($record, array_flip($keys));
return true;
}
/**
* {@inheritdoc}
*/
public function collect()
{
return ['records' => $this->records];
}
/**
* {@inheritdoc}
*/
public function getName()
{
return 'log';
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Pagekit\Log\Handler;
use DebugBar\DataCollector\DataCollectorInterface;
use Monolog\Handler\AbstractHandler;
class DebugBarHandler extends AbstractHandler implements DataCollectorInterface
{
/**
* @var array
*/
protected $records = [];
/**
* {@inheritdoc}
*/
public function handle(array $record)
{
if ($record['level'] < $this->level) {
return false;
}
$keys = [
'message',
'level',
'level_name',
'channel'
];
$this->records[] = array_intersect_key($record, array_flip($keys));
return true;
}
/**
* {@inheritdoc}
*/
public function collect()
{
return ['records' => $this->records];
}
/**
* {@inheritdoc}
*/
public function getName()
{
return 'log';
}
}
Function Calls
None |
Stats
MD5 | 53a96488d068a69948d0e5644860f27c |
Eval Count | 0 |
Decode Time | 93 ms |