mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
cs fix
This commit is contained in:
parent
029f8efa12
commit
4f2ca17bde
@ -356,14 +356,14 @@ class ArtifactDownloader
|
|||||||
$downloader = new $cls();
|
$downloader = new $cls();
|
||||||
return $downloader->checkUpdate($artifact_name, $info['config'], $info['version'], $this);
|
return $downloader->checkUpdate($artifact_name, $info['config'], $info['version'], $this);
|
||||||
}
|
}
|
||||||
// custom source: delegate to registered check-update callback
|
|
||||||
if (($info['lock_type'] ?? null) === 'source' && ($callback = $artifact->getCustomSourceCheckUpdateCallback()) !== null) {
|
if (($info['lock_type'] ?? null) === 'source' && ($callback = $artifact->getCustomSourceCheckUpdateCallback()) !== null) {
|
||||||
return ApplicationContext::invoke($callback, [
|
return ApplicationContext::invoke($callback, [
|
||||||
ArtifactDownloader::class => $this,
|
ArtifactDownloader::class => $this,
|
||||||
'old_version' => $info['version'],
|
'old_version' => $info['version'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
// custom binary: delegate to registered check-update callback
|
|
||||||
if (($callback = $artifact->getCustomBinaryCheckUpdateCallback()) !== null) {
|
if (($callback = $artifact->getCustomBinaryCheckUpdateCallback()) !== null) {
|
||||||
return ApplicationContext::invoke($callback, [
|
return ApplicationContext::invoke($callback, [
|
||||||
ArtifactDownloader::class => $this,
|
ArtifactDownloader::class => $this,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user