code refactoring

- variable names
- unused parameters
This commit is contained in:
Steffen Schröder
2014-06-14 15:48:27 +02:00
parent b1663303b0
commit ff0dfc4ae7
31 changed files with 439 additions and 489 deletions

View File

@ -334,13 +334,13 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
* @return int
*/
public function getMenuId($title) {
$i = 0;
$index = 0;
foreach ($this->menus as $menu) {
/** @var ConfiguratorMenu $menu */
/** @var ConfiguratorMenu $menu */
if ($menu === $title || $menu->getTitle() === $title) {
return $i;
return $index;
}
$i++;
$index++;
}
return 0;
}