Correct whitespace and parentheses typos in BlockLogFormatter
authorThalia <thalia.e.chan@googlemail.com>
Thu, 31 Jan 2019 06:17:18 +0000 (22:17 -0800)
committerThalia <thalia.e.chan@googlemail.com>
Thu, 31 Jan 2019 06:46:28 +0000 (22:46 -0800)
Change-Id: I9e79e9d274e8ed1fa94966f5e1ac01f8fcd6d96b

includes/logging/BlockLogFormatter.php

index 84cf0b2..ddecf9e 100644 (file)
@@ -77,8 +77,8 @@ class BlockLogFormatter extends LogFormatter {
                        // block restrictions
                        if ( isset( $params[6] ) ) {
                                $pages = $params[6]['pages'] ?? [];
-                               $pages = array_map( function ( $page ){
-                                       return $this->makePageLink( Title::newFromText( ( $page ) ) );
+                               $pages = array_map( function ( $page ) {
+                                       return $this->makePageLink( Title::newFromText( $page ) );
                                }, $pages );
 
                                $namespaces = $params[6]['namespaces'] ?? [];