From 3e7c21a7c180f8cfb0a4da77d45c02ccba97e0e3 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 10 Jun 2016 09:34:05 -0700 Subject: [PATCH] Remove useless sort parameter to printArray() All callers use the default Change-Id: If2a5cd64242f3b3d9ad9a99f5af7fb5b93438e8e --- maintenance/findHooks.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index d44581cd34..a8bed54e1a 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -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" ); -- 2.20.1