Remove useless sort parameter to printArray()
authorChad Horohoe <chadh@wikimedia.org>
Fri, 10 Jun 2016 16:34:05 +0000 (09:34 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 10 Jun 2016 20:43:58 +0000 (13:43 -0700)
All callers use the default

Change-Id: If2a5cd64242f3b3d9ad9a99f5af7fb5b93438e8e

maintenance/findHooks.php

index d44581c..a8bed54 100644 (file)
@@ -328,15 +328,12 @@ class FindHooks extends Maintenance {
        }
 
        /**
-        * Nicely output the array
+        * Nicely sort an print an array
         * @param string $msg A message to show before the value
         * @param array $arr
-        * @param bool $sort Whether to sort the array (Default: true)
         */
-       private function printArray( $msg, $arr, $sort = true ) {
-               if ( $sort ) {
-                       asort( $arr );
-               }
+       private function printArray( $msg, $arr ) {
+               asort( $arr );
 
                foreach ( $arr as $v ) {
                        $this->output( "$msg: $v\n" );