1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 09:06:10 +02:00

Simplified code

This commit is contained in:
Christophe Coevoet
2011-05-06 19:48:34 +02:00
parent e059c441e0
commit 708d799e1d
3 changed files with 2 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ class LineFormatter implements FormatterInterface
*/
public function __construct($format = null, $dateFormat = null)
{
$this->format = $format ?: self::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: self::SIMPLE_DATE;
$this->format = $format ?: static::SIMPLE_FORMAT;
$this->dateFormat = $dateFormat ?: static::SIMPLE_DATE;
}
/**