Merge "Remove nested foreach references"

This commit is contained in:
jenkins-bot 2017-10-10 06:38:15 +00:00 committed by Gerrit Code Review
commit b757d5cd15

View file

@ -174,8 +174,8 @@ class ApiQueryGadgets extends ApiQueryBase {
];
$result = $this->getResult();
foreach ( $metadata as &$data ) {
foreach ( $data as $key => &$value ) {
foreach ( $metadata as $data ) {
foreach ( $data as $key => $value ) {
if ( is_array( $value ) ) {
$tag = isset( $tagNames[$key] ) ? $tagNames[$key] : $key;
$result->setIndexedTagName( $value, $tag );