patch->setBranch('for Firefox'); } function check() : bool { if ($this->fetch('https://addons.mozilla.org/en-US/firefox/addon/languagetool/')) return $this->parse('/"version":"([\d\.]+)"/'); return false; } } ?>