ProtectionForm: Follow up on I167ae6300b37d4e9292
authorDerick Alangi <alangiderick@gmail.com>
Mon, 11 Mar 2019 09:34:23 +0000 (10:34 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 16 Mar 2019 21:12:18 +0000 (21:12 +0000)
Per code search string "\$this\-\>showLogExtract\( \$ou", method
is only called within the ProtectionForm class so can be safely
made private but there are methods with the same name in a class
like LogEventsList but do different things.

Inspired by @Thiemo's comment on I167ae6300b37d4e9292.

Change-Id: Ic4983ccffecc6285f848d6e926017c4c6df4855f

includes/ProtectionForm.php

index 0e18e46..7972a1e 100644 (file)
@@ -623,9 +623,8 @@ class ProtectionForm {
         * Show protection long extracts for this page
         *
         * @param OutputPage $out
-        * @private
         */
-       function showLogExtract( OutputPage $out ) {
+       private function showLogExtract( OutputPage $out ) {
                # Show relevant lines from the protection log:
                $protectLogPage = new LogPage( 'protect' );
                $out->addHTML( Xml::element( 'h2', null, $protectLogPage->getName()->text() ) );