From: Siebrand Mazeland Date: Wed, 8 Jan 2014 18:27:10 +0000 (+0100) Subject: Do not suggest to use unused local vars X-Git-Tag: 1.31.0-rc.0~17336^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=d32179aff9e3ed92f33451a99316024e26067dd8;p=lhc%2Fweb%2Fwiklou.git Do not suggest to use unused local vars Change-Id: I4c2ab60054304593a9fd873b28e160b9d07442f0 --- diff --git a/maintenance/generateJsonI18n.php b/maintenance/generateJsonI18n.php index 3b7a6529bc..9c8354ca57 100644 --- a/maintenance/generateJsonI18n.php +++ b/maintenance/generateJsonI18n.php @@ -110,7 +110,7 @@ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$ $fileName = __DIR__ . "/{{OUT}}/$csCode.json"; if ( is_readable( $fileName ) ) { $data = FormatJson::decode( file_get_contents( $fileName ), true ); - foreach ( $data as $key => $unused ) { + foreach ( array_keys( $data ) as $key ) { if ( $key === '' || $key[0] === '@' ) { unset( $data[$key] ); }