original_string: public function getSiteMap()
      {
          $sitemap = $this->getCacheItem('site-map');
  
          if (null === $sitemap) {
              /* @var $menuService MenuService */
              $menuService = $this->getService(MenuService::class);
  
              $navigation = $menuService->getPages();
  
              $argv = $this->prepareEventArguments(compact('navigation'));
              $this->getEventManager()->trigger('uthando.site-map', $this, $argv);
  
              $sitemap = $this->getService('ViewHelperManager')
                  ->get(Navigation::class)
                  ->setRole('guest')
                  ->sitemap($navigation)
                  ->render();
  
              $this->setCacheItem('site-map', $sitemap);
          }
  
          return $sitemap;
      }
code: public function getSiteMap()
      {
          $sitemap = $this->getCacheItem('site-map');
  
          if (null === $sitemap) {
              /* @var $menuService MenuService */
              $menuService = $this->getService(MenuService::class);
  
              $navigation = $menuService->getPages();
  
              $argv = $this->prepareEventArguments(compact('navigation'));
              $this->getEventManager()->trigger('uthando.site-map', $this, $argv);
  
              $sitemap = $this->getService('ViewHelperManager')
                  ->get(Navigation::class)
                  ->setRole('guest')
                  ->sitemap($navigation)
                  ->render();
  
              $this->setCacheItem('site-map', $sitemap);
          }
  
          return $sitemap;
      }
code_tokens: public function getSiteMap ( ) { $ sitemap = $ this -> getCacheItem ( 'site-map' ) ; if ( null === $ sitemap ) { /* @var $menuService MenuService */ $ menuService = $ this -> getService ( MenuService :: class ) ; $ navigation = $ menuService -> getPages ( ) ; $ argv = $ this -> prepareEventArguments ( compact ( 'navigation' ) ) ; $ this -> getEventManager ( ) -> trigger ( 'uthando.site-map' , $ this , $ argv ) ; $ sitemap = $ this -> getService ( 'ViewHelperManager' ) -> get ( Navigation :: class ) -> setRole ( 'guest' ) -> sitemap ( $ navigation ) -> render ( ) ; $ this -> setCacheItem ( 'site-map' , $ sitemap ) ; } return $ sitemap ; }
docstring: Returns a formatted xml sitemap string
  
  @return string
docstring_tokens: Returns a formatted xml sitemap string