Separate fetch and fetch_json helper funcs
This commit is contained in:
parent
4a613a0d3b
commit
62a9f6f0c8
56 changed files with 63 additions and 58 deletions
|
|
@ -6,7 +6,7 @@ class AdoptOpenJDK15 extends PatchBase {
|
|||
$this->patch->setBranch('JRE 15');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://api.adoptopenjdk.net/v2/info/releases/openjdk15?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64', true))
|
||||
if ($this->fetch_json('https://api.adoptopenjdk.net/v2/info/releases/openjdk15?release=latest&openjdk_impl=hotspot&type=jre&os=windows&arch=x64'))
|
||||
return $this->parse_json('openjdk_version');
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue