original_string: public function getTrackingFailures()
      {
          if (Piwik::hasUserSuperUserAccess()) {
              $failures = $this->trackingFailures->getAllFailures();
          } else {
              Piwik::checkUserHasSomeAdminAccess();
              $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
              Piwik::checkUserHasAdminAccess($idSites);
  
              $failures = $this->trackingFailures->getFailuresForSites($idSites);
          }
  
          return $failures;
      }
code: public function getTrackingFailures()
      {
          if (Piwik::hasUserSuperUserAccess()) {
              $failures = $this->trackingFailures->getAllFailures();
          } else {
              Piwik::checkUserHasSomeAdminAccess();
              $idSites = Access::getInstance()->getSitesIdWithAdminAccess();
              Piwik::checkUserHasAdminAccess($idSites);
  
              $failures = $this->trackingFailures->getFailuresForSites($idSites);
          }
  
          return $failures;
      }
code_tokens: public function getTrackingFailures ( ) { if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ failures = $ this -> trackingFailures -> getAllFailures ( ) ; } else { Piwik :: checkUserHasSomeAdminAccess ( ) ; $ idSites = Access :: getInstance ( ) -> getSitesIdWithAdminAccess ( ) ; Piwik :: checkUserHasAdminAccess ( $ idSites ) ; $ failures = $ this -> trackingFailures -> getFailuresForSites ( $ idSites ) ; } return $ failures ; }
docstring: Get all tracking failures. A user retrieves only tracking failures for sites with at least admin access.
  A super user will also retrieve failed requests for sites that don't exist.
  @return array
docstring_tokens: Get all tracking failures . A user retrieves only tracking failures for sites with at least admin access . A super user will also retrieve failed requests for sites that don t exist .