original_string: protected function getEditMenuItems()
      {
          $resets = $this->findMenuItems($this->menuActionController, 'reset');
          foreach ($resets as $resetPw) {
              if ($resetPw instanceof \Gems_Menu_SubMenuItem) {
                  $resetPw->set('label', $this->_('password'));
              }
          }
          return array_merge(
                  parent::getEditMenuItems(),
                  $resets,
                  $this->findMenuItems($this->menuActionController, 'mail')
                  );
      }
code: protected function getEditMenuItems()
      {
          $resets = $this->findMenuItems($this->menuActionController, 'reset');
          foreach ($resets as $resetPw) {
              if ($resetPw instanceof \Gems_Menu_SubMenuItem) {
                  $resetPw->set('label', $this->_('password'));
              }
          }
          return array_merge(
                  parent::getEditMenuItems(),
                  $resets,
                  $this->findMenuItems($this->menuActionController, 'mail')
                  );
      }
code_tokens: protected function getEditMenuItems ( ) { $ resets = $ this -> findMenuItems ( $ this -> menuActionController , 'reset' ) ; foreach ( $ resets as $ resetPw ) { if ( $ resetPw instanceof \ Gems_Menu_SubMenuItem ) { $ resetPw -> set ( 'label' , $ this -> _ ( 'password' ) ) ; } } return array_merge ( parent :: getEditMenuItems ( ) , $ resets , $ this -> findMenuItems ( $ this -> menuActionController , 'mail' ) ) ; }
docstring: Returns an edit menu item, if access is allowed by privileges
  
  @return \Gems_Menu_SubMenuItem
docstring_tokens: Returns an edit menu item if access is allowed by privileges