Remove unused $key variables from foreach()

Change-Id: Ib035ff7fc3eeeb73b6f870b226775d61b3caee11
This commit is contained in:
Reedy 2022-03-21 23:58:00 +00:00
parent 248d2bb8d6
commit 6adc5ecabf

View file

@ -175,7 +175,7 @@ class OATHManage extends SpecialPage {
} }
private function addInactiveHTML() { private function addInactiveHTML() {
foreach ( $this->auth->getAllModules() as $key => $module ) { foreach ( $this->auth->getAllModules() as $module ) {
if ( $this->isModuleEnabled( $module ) ) { if ( $this->isModuleEnabled( $module ) ) {
continue; continue;
} }
@ -351,7 +351,7 @@ class OATHManage extends SpecialPage {
} }
private function hasAlternativeModules() { private function hasAlternativeModules() {
foreach ( $this->auth->getAllModules() as $key => $module ) { foreach ( $this->auth->getAllModules() as $module ) {
if ( !$this->isModuleEnabled( $module ) ) { if ( !$this->isModuleEnabled( $module ) ) {
return true; return true;
} }