From e45e0a14bbe18e41257e443ff11a11430dd9489e Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 10 Oct 2017 00:20:26 +0100 Subject: [PATCH] Remove nested foreach references No modification done... Bug: T173850 Change-Id: If4fce9b1386b5ae5ea02b85a7dfb3e60c0ce62a6 --- api/ApiQueryGadgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ApiQueryGadgets.php b/api/ApiQueryGadgets.php index bd20a76f..618858da 100644 --- a/api/ApiQueryGadgets.php +++ b/api/ApiQueryGadgets.php @@ -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 );