Download tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php
-
curl -L -o GitCommitReleaseChannel.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Fixtures/LatestStableInstall/GitCommitReleaseChannel.php
746 Bytes
| namespace Piwik\Plugins\CoreUpdater\ReleaseChannel; | |
| use Piwik\UpdateCheck\ReleaseChannel; | |
| use Piwik\Url; | |
| use Piwik\Version; | |
| class GitCommitReleaseChannel extends ReleaseChannel | |
| { | |
| public function getId() | |
| { | |
| return 'git_commit'; | |
| } | |
| public function getName() | |
| { | |
| return 'Test Release Channel'; | |
| } | |
| public function getUrlToCheckForLatestAvailableVersion() | |
| { | |
| $majorVersion = (int) Version::VERSION; | |
| $majorVersion += 1; | |
| return 'http://' . Url::getHost(false) . '/tests/resources/one-click-update-version.php?v=' . $majorVersion; | |
| } | |
| public function getDownloadUrlWithoutScheme($version) | |
| { | |
| return '://' . Url::getHost(false) . '/matomo-build.zip'; | |
| } | |
| } | |