original_string: protected function getAllMenus()
      {
          if (!empty(self::$menus)) {
              return self::$menus;
          }
  
          $components = PluginManager::getInstance()->findComponents('Menu', 'Piwik\\Plugin\\Menu');
  
          self::$menus = array();
          foreach ($components as $component) {
              self::$menus[] = StaticContainer::get($component);
          }
  
          return self::$menus;
      }
code: protected function getAllMenus()
      {
          if (!empty(self::$menus)) {
              return self::$menus;
          }
  
          $components = PluginManager::getInstance()->findComponents('Menu', 'Piwik\\Plugin\\Menu');
  
          self::$menus = array();
          foreach ($components as $component) {
              self::$menus[] = StaticContainer::get($component);
          }
  
          return self::$menus;
      }
code_tokens: protected function getAllMenus ( ) { if ( ! empty ( self :: $ menus ) ) { return self :: $ menus ; } $ components = PluginManager :: getInstance ( ) -> findComponents ( 'Menu' , 'Piwik\\Plugin\\Menu' ) ; self :: $ menus = array ( ) ; foreach ( $ components as $ component ) { self :: $ menus [ ] = StaticContainer :: get ( $ component ) ; } return self :: $ menus ; }
docstring: Returns a list of available plugin menu instances.
  
  @return \Piwik\Plugin\Menu[]
docstring_tokens: Returns a list of available plugin menu instances .