PatchBot/modules/AtomEditor.php
2021-04-16 22:43:08 +02:00

14 lines
322 B
PHP

<?php
class AtomEditor extends PatchBase {
function __construct() {
parent::__construct('GitHub Inc.', 'Atom Editor', 'https://atom.io/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/atom/atom/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>