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); namespace Sabre\DAV; use Psr\Log\AbstractLogger; /** *..
Decoded Output download
<?php
declare(strict_types=1);
namespace Sabre\DAV;
use Psr\Log\AbstractLogger;
/**
* The MockLogger is a simple PSR-3 implementation that we can use to test
* whether things get logged correctly.
*
* @copyright Copyright (C) fruux GmbH. (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class MockLogger extends AbstractLogger
{
public $logs = [];
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
*/
public function log($level, $message, array $context = []): void
{
$this->logs[] = [
$level,
$message,
$context,
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Sabre\DAV;
use Psr\Log\AbstractLogger;
/**
* The MockLogger is a simple PSR-3 implementation that we can use to test
* whether things get logged correctly.
*
* @copyright Copyright (C) fruux GmbH. (https://fruux.com/)
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class MockLogger extends AbstractLogger
{
public $logs = [];
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
*/
public function log($level, $message, array $context = []): void
{
$this->logs[] = [
$level,
$message,
$context,
];
}
}
Function Calls
None |
Stats
MD5 | 544722d381869dfb0a41bccb78700b34 |
Eval Count | 0 |
Decode Time | 144 ms |