original_string: public function updateSpammerBlacklist()
      {
          $url = 'https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt';
          $list = Http::sendHttpRequest($url, 30);
          $list = preg_split("/\r\n|\n|\r/", $list);
          if (count($list) < 10) {
              throw new \Exception(sprintf(
                  'The spammers list downloaded from %s contains less than 10 entries, considering it a fail',
                  $url
              ));
          }
  
          Option::set(ReferrerSpamFilter::OPTION_STORAGE_NAME, serialize($list));
      }
code: public function updateSpammerBlacklist()
      {
          $url = 'https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt';
          $list = Http::sendHttpRequest($url, 30);
          $list = preg_split("/\r\n|\n|\r/", $list);
          if (count($list) < 10) {
              throw new \Exception(sprintf(
                  'The spammers list downloaded from %s contains less than 10 entries, considering it a fail',
                  $url
              ));
          }
  
          Option::set(ReferrerSpamFilter::OPTION_STORAGE_NAME, serialize($list));
      }
code_tokens: public function updateSpammerBlacklist ( ) { $ url = 'https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt' ; $ list = Http :: sendHttpRequest ( $ url , 30 ) ; $ list = preg_split ( "/\r\n|\n|\r/" , $ list ) ; if ( count ( $ list ) < 10 ) { throw new \ Exception ( sprintf ( 'The spammers list downloaded from %s contains less than 10 entries, considering it a fail' , $ url ) ) ; } Option :: set ( ReferrerSpamFilter :: OPTION_STORAGE_NAME , serialize ( $ list ) ) ; }
docstring: Update the referrer spam blacklist
  
  @see https://github.com/matomo-org/referrer-spam-blacklist
docstring_tokens: Update the referrer spam blacklist