From: Chad Horohoe Date: Fri, 10 Jun 2016 16:34:05 +0000 (-0700) Subject: Remove useless sort parameter to printArray() X-Git-Tag: 1.31.0-rc.0~6647 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=3e7c21a7c180f8cfb0a4da77d45c02ccba97e0e3;p=lhc%2Fweb%2Fwiklou.git Remove useless sort parameter to printArray() All callers use the default Change-Id: If2a5cd64242f3b3d9ad9a99f5af7fb5b93438e8e --- 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" );