original_string: public function getReportPagesMetadata($idSite)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $widgetsList  = WidgetsList::get();
          $categoryList = CategoryList::get();
          $metadata     = new WidgetMetadata();
  
          return $metadata->getPagesMetadata($categoryList, $widgetsList);
      }
code: public function getReportPagesMetadata($idSite)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $widgetsList  = WidgetsList::get();
          $categoryList = CategoryList::get();
          $metadata     = new WidgetMetadata();
  
          return $metadata->getPagesMetadata($categoryList, $widgetsList);
      }
code_tokens: public function getReportPagesMetadata ( $ idSite ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ widgetsList = WidgetsList :: get ( ) ; $ categoryList = CategoryList :: get ( ) ; $ metadata = new WidgetMetadata ( ) ; return $ metadata -> getPagesMetadata ( $ categoryList , $ widgetsList ) ; }
docstring: Get a list of all pages that shall be shown in a Matomo UI including a list of all widgets that shall
  be shown within each page.
  
  @param int $idSite
  @return array
docstring_tokens: Get a list of all pages that shall be shown in a Matomo UI including a list of all widgets that shall be shown within each page .