Merge "Convert Special:DeletedContributions to use OOUI."
[lhc/web/wiklou.git] / includes / debug / logger / LegacySpi.php
index 6a7f1d0..4cf8313 100644 (file)
@@ -25,12 +25,12 @@ namespace MediaWiki\Logger;
  *
  * Usage:
  * @code
- * $wgMWLoggerDefaultSpi = array(
+ * $wgMWLoggerDefaultSpi = [
  *   'class' => '\\MediaWiki\\Logger\\LegacySpi',
- * );
+ * ];
  * @endcode
  *
- * @see \\MediaWiki\\Logger\\LoggerFactory
+ * @see \MediaWiki\Logger\LoggerFactory
  * @since 1.25
  * @author Bryan Davis <bd808@wikimedia.org>
  * @copyright © 2014 Bryan Davis and Wikimedia Foundation.
@@ -40,14 +40,13 @@ class LegacySpi implements Spi {
        /**
         * @var array $singletons
         */
-       protected $singletons = array();
-
+       protected $singletons = [];
 
        /**
         * Get a logger instance.
         *
         * @param string $channel Logging channel
-        * @return \\Psr\\Log\\LoggerInterface Logger instance
+        * @return \Psr\Log\LoggerInterface Logger instance
         */
        public function getLogger( $channel ) {
                if ( !isset( $this->singletons[$channel] ) ) {