dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git]
/
includes
/
debug
/
logger
/
NullSpi.php
diff --git
a/includes/debug/logger/NullSpi.php
b/includes/debug/logger/NullSpi.php
index
c9c7482
..
4862157
100644
(file)
--- a/
includes/debug/logger/NullSpi.php
+++ b/
includes/debug/logger/NullSpi.php
@@
-23,39
+23,35
@@
namespace MediaWiki\Logger;
use Psr\Log\NullLogger;
/**
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:
* 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
* @since 1.25
- * @author Bryan Davis <bd808@wikimedia.org>
- * @copyright © 2014 Bryan Davis and Wikimedia Foundation.
+ * @copyright © 2014 Wikimedia Foundation and contributors
*/
class NullSpi implements Spi {
/**
*/
class NullSpi implements Spi {
/**
- * @var \
\Psr\\Log\
\NullLogger $singleton
+ * @var \
Psr\Log
\NullLogger $singleton
*/
protected $singleton;
*/
protected $singleton;
-
public function __construct() {
$this->singleton = new NullLogger();
}
public function __construct() {
$this->singleton = new NullLogger();
}
-
/**
* Get a logger instance.
*
* @param string $channel Logging channel
/**
* 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;
*/
public function getLogger( $channel ) {
return $this->singleton;