mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 17:46:09 +02:00
CS fixes
This commit is contained in:
@@ -24,17 +24,17 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
/**
|
||||
* @return array Record
|
||||
*/
|
||||
protected function getRecord($level = Logger::WARNING, $message = 'test', $context = array())
|
||||
protected function getRecord($level = Logger::WARNING, $message = 'test', $context = [])
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
'message' => $message,
|
||||
'context' => $context,
|
||||
'level' => $level,
|
||||
'level_name' => Logger::getLevelName($level),
|
||||
'channel' => 'test',
|
||||
'datetime' => new DateTimeImmutable(true),
|
||||
'extra' => array(),
|
||||
);
|
||||
'extra' => [],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,13 +42,13 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function getMultipleRecords()
|
||||
{
|
||||
return array(
|
||||
return [
|
||||
$this->getRecord(Logger::DEBUG, 'debug message 1'),
|
||||
$this->getRecord(Logger::DEBUG, 'debug message 2'),
|
||||
$this->getRecord(Logger::INFO, 'information'),
|
||||
$this->getRecord(Logger::WARNING, 'warning'),
|
||||
$this->getRecord(Logger::ERROR, 'error'),
|
||||
);
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user