From 330eaf45247c813d75c2961136976818abfbf2d1 Mon Sep 17 00:00:00 2001 From: Michael Darko Date: Fri, 16 Oct 2026 00:57:08 +0000 Subject: [PATCH] fix: remove stray Leaf\Console\Utils\Package copied from leafs/cli --- src/Utils/Package.php | 68 ------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 src/Utils/Package.php diff --git a/src/Utils/Package.php b/src/Utils/Package.php deleted file mode 100644 index ff90c6e..0000000 --- a/src/Utils/Package.php +++ /dev/null @@ -1,68 +0,0 @@ -version; - } - - /** - * Find latest stable version - */ - public static function ltsInfo() - { - $data = file_get_contents('https://repo.packagist.org/p2/leafs/cli.json'); - - if (!$data) { - return static::info(); - } - - $package = json_decode($data); - - return $package->packages->{'leafs/cli'}[0]; - } - - /** - * Find latest stable version - */ - public static function ltsVersion() - { - $package = static::ltsInfo(); - - return $package->version; - } - - /** - * Check if there is an update available - */ - public static function updateAvailable() - { - $currentVersion = static::version(); - $latestVersion = static::ltsVersion(); - - return ($currentVersion !== $latestVersion); - } -}