X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FNullSpi.php;h=82308d0e9f4383af7b557dcc38596c119c939d09;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hp=c9c74821d0af6c0bc74c40fd537e2ea22b6715da;hpb=ea37defbf554c01178f4a4f8aa75d3ead825bd43;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/logger/NullSpi.php b/includes/debug/logger/NullSpi.php index c9c74821d0..4862157d8c 100644 --- a/includes/debug/logger/NullSpi.php +++ b/includes/debug/logger/NullSpi.php @@ -23,39 +23,35 @@ namespace MediaWiki\Logger; use Psr\Log\NullLogger; /** - * LoggerFactory service provider that creates \\Psr\\Log\\NullLogger + * LoggerFactory service provider that creates \Psr\Log\NullLogger * instances. A NullLogger silently discards all log events sent to it. * * Usage: - * @code - * $wgMWLoggerDefaultSpi = array( - * 'class' => '\\MediaWiki\\Logger\\NullSpi', - * ); - * @endcode * - * @see \\MediaWiki\\Logger\\LoggerFactory + * $wgMWLoggerDefaultSpi = [ + * 'class' => '\\MediaWiki\\Logger\\NullSpi', + * ]; + * + * @see \MediaWiki\Logger\LoggerFactory * @since 1.25 - * @author Bryan Davis - * @copyright © 2014 Bryan Davis and Wikimedia Foundation. + * @copyright © 2014 Wikimedia Foundation and contributors */ class NullSpi implements Spi { /** - * @var \\Psr\\Log\\NullLogger $singleton + * @var \Psr\Log\NullLogger $singleton */ protected $singleton; - public function __construct() { $this->singleton = new NullLogger(); } - /** * Get a logger instance. * * @param string $channel Logging channel - * @return \\Psr\\Log\\NullLogger Logger instance + * @return \Psr\Log\NullLogger Logger instance */ public function getLogger( $channel ) { return $this->singleton;