original_string: protected function findMenuItem($defaultController, $actions = 'index')
      {
          foreach ((array) $actions as $key => $action) {
              $controller = is_int($key) ? $defaultController : $key;
              $item       = $this->menu->find(array('controller' => $controller, 'action' => $action, 'allowed' => true));
  
              if ($item) {
                  return $item;
              }
          }
      }
code: protected function findMenuItem($defaultController, $actions = 'index')
      {
          foreach ((array) $actions as $key => $action) {
              $controller = is_int($key) ? $defaultController : $key;
              $item       = $this->menu->find(array('controller' => $controller, 'action' => $action, 'allowed' => true));
  
              if ($item) {
                  return $item;
              }
          }
      }
code_tokens: protected function findMenuItem ( $ defaultController , $ actions = 'index' ) { foreach ( ( array ) $ actions as $ key => $ action ) { $ controller = is_int ( $ key ) ? $ defaultController : $ key ; $ item = $ this -> menu -> find ( array ( 'controller' => $ controller , 'action' => $ action , 'allowed' => true ) ) ; if ( $ item ) { return $ item ; } } }
docstring: Finds a specific active menu item
  
  @param string $defaultController
  @param string|array $actions
  @return \Gems_Menu_SubMenuItem The first that
  @deprecated since 1.7.1, use findMenuItems()
docstring_tokens: Finds a specific active menu item