dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove useless sort parameter to printArray()
[lhc/web/wiklou.git]
/
maintenance
/
findHooks.php
diff --git
a/maintenance/findHooks.php
b/maintenance/findHooks.php
index
d44581c
..
a8bed54
100644
(file)
--- 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 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" );
foreach ( $arr as $v ) {
$this->output( "$msg: $v\n" );