Platformsh\Cli\SelfUpdate\ManifestStrategy::getUpdateNotes PHP Метод

getUpdateNotes() публичный Метод

Find update/upgrade notes for the new remote version.
public getUpdateNotes ( Humbug\SelfUpdate\Updater $updater ) : string | false
$updater Humbug\SelfUpdate\Updater
Результат string | false A string if notes are found, or false otherwise.
    public function getUpdateNotes(Updater $updater)
    {
        $versionInfo = $this->getRemoteVersionInfo($updater);
        if (empty($versionInfo['updating'])) {
            return false;
        }
        $localVersion = $this->getCurrentLocalVersion($updater);
        $items = isset($versionInfo['updating'][0]) ? $versionInfo['updating'] : [$versionInfo['updating']];
        foreach ($items as $updating) {
            if (!isset($updating['notes'])) {
                continue;
            } elseif (isset($updating['hide from']) && version_compare($localVersion, $updating['hide from'], '>=')) {
                continue;
            } elseif (isset($updating['show from']) && version_compare($localVersion, $updating['show from'], '<')) {
                continue;
            }
            return $updating['notes'];
        }
        return false;
    }