original_string: protected function fetch_feed(string $url) : \moodle_simplepie {
          // Fetch the rss feed, using standard simplepie caching so feeds will be renewed only if cache has expired.
          \core_php_time_limit::raise(60);
  
          $feed = new \moodle_simplepie();
  
          // Set timeout for longer than normal to be agressive at fetching feeds if possible..
          $feed->set_timeout(40);
          $feed->set_cache_duration(0);
          $feed->set_feed_url($url);
          $feed->init();
  
          return $feed;
      }
code: protected function fetch_feed(string $url) : \moodle_simplepie {
          // Fetch the rss feed, using standard simplepie caching so feeds will be renewed only if cache has expired.
          \core_php_time_limit::raise(60);
  
          $feed = new \moodle_simplepie();
  
          // Set timeout for longer than normal to be agressive at fetching feeds if possible..
          $feed->set_timeout(40);
          $feed->set_cache_duration(0);
          $feed->set_feed_url($url);
          $feed->init();
  
          return $feed;
      }
code_tokens: protected function fetch_feed ( string $ url ) : \ moodle_simplepie { // Fetch the rss feed, using standard simplepie caching so feeds will be renewed only if cache has expired. \ core_php_time_limit :: raise ( 60 ) ; $ feed = new \ moodle_simplepie ( ) ; // Set timeout for longer than normal to be agressive at fetching feeds if possible.. $ feed -> set_timeout ( 40 ) ; $ feed -> set_cache_duration ( 0 ) ; $ feed -> set_feed_url ( $ url ) ; $ feed -> init ( ) ; return $ feed ; }
docstring: Fetch a feed for the specified URL.
  
  @param   string  $url The URL to fetch
  @return  \moodle_simplepie
docstring_tokens: Fetch a feed for the specified URL .