diff --git a/src/app/DownloadHandler/AbstractDownloadHandler.php b/src/app/DownloadHandler/AbstractDownloadHandler.php index a95c9de..244154a 100644 --- a/src/app/DownloadHandler/AbstractDownloadHandler.php +++ b/src/app/DownloadHandler/AbstractDownloadHandler.php @@ -179,5 +179,4 @@ protected function replaces(string $subject, array $replaces): string } return $subject; } - } diff --git a/src/app/DownloadHandler/ComposerHandler.php b/src/app/DownloadHandler/ComposerHandler.php index 676fd3f..78906b9 100644 --- a/src/app/DownloadHandler/ComposerHandler.php +++ b/src/app/DownloadHandler/ComposerHandler.php @@ -18,8 +18,6 @@ class ComposerHandler extends AbstractDownloadHandler { - - protected string $fullRepo = 'composer/composer'; protected string $githubBaseUrl = 'github.com'; @@ -69,5 +67,4 @@ protected function fetchDownloadUrlFromGetComposerOrg(Definition $definition, st 'bin' => $definition->getBin(), ]); } - } diff --git a/src/app/DownloadHandler/DefaultHandler.php b/src/app/DownloadHandler/DefaultHandler.php index e98b6f3..4089c22 100644 --- a/src/app/DownloadHandler/DefaultHandler.php +++ b/src/app/DownloadHandler/DefaultHandler.php @@ -17,7 +17,6 @@ class DefaultHandler extends AbstractDownloadHandler { - public function handle(string $pkgName, string $version, array $options = []): ?SplFileInfo { $definition = $this->getDefinition($pkgName); @@ -48,5 +47,4 @@ public function versions(string $pkgName, array $options = []): array } return $this->fetchVersionsFromGithubRelease($definition->getRepo(), $definition->getBin()); } - } diff --git a/src/app/PkgDefinition/Definition.php b/src/app/PkgDefinition/Definition.php index 1864c7e..c5e5eab 100644 --- a/src/app/PkgDefinition/Definition.php +++ b/src/app/PkgDefinition/Definition.php @@ -2,7 +2,6 @@ namespace App\PkgDefinition; - class Definition { protected string $pkgName = ''; @@ -141,5 +140,4 @@ public function setSources(Sources $sources): Definition $this->sources = $sources; return $this; } - -} \ No newline at end of file +} diff --git a/src/app/PkgDefinition/Job.php b/src/app/PkgDefinition/Job.php index ae3f5a7..c7ef59c 100644 --- a/src/app/PkgDefinition/Job.php +++ b/src/app/PkgDefinition/Job.php @@ -2,7 +2,6 @@ namespace App\PkgDefinition; - class Job { protected string $os; @@ -48,5 +47,4 @@ public function setJobId(string $jobId): Job $this->jobId = $jobId; return $this; } - -} \ No newline at end of file +} diff --git a/src/app/PkgDefinition/Jobs.php b/src/app/PkgDefinition/Jobs.php index b6ecc72..c182243 100644 --- a/src/app/PkgDefinition/Jobs.php +++ b/src/app/PkgDefinition/Jobs.php @@ -2,7 +2,6 @@ namespace App\PkgDefinition; - class Jobs { /** @@ -33,4 +32,4 @@ public function setJobs(array $jobs): static $this->jobs = $jobs; return $this; } -} \ No newline at end of file +} diff --git a/src/app/PkgDefinition/Source.php b/src/app/PkgDefinition/Source.php index dbc512c..34eced7 100644 --- a/src/app/PkgDefinition/Source.php +++ b/src/app/PkgDefinition/Source.php @@ -2,10 +2,8 @@ namespace App\PkgDefinition; - class Source { - protected string $name; protected string $type = 'github'; protected string $url = ''; @@ -49,4 +47,4 @@ public function setUrl(string $url): Source $this->url = $url; return $this; } -} \ No newline at end of file +} diff --git a/src/app/PkgDefinition/Sources.php b/src/app/PkgDefinition/Sources.php index d062722..dbfd1a4 100644 --- a/src/app/PkgDefinition/Sources.php +++ b/src/app/PkgDefinition/Sources.php @@ -2,10 +2,8 @@ namespace App\PkgDefinition; - class Sources { - protected array $sources = []; public function __construct(array $sources) @@ -37,5 +35,4 @@ public function setSources(array $sources): Sources $this->sources = $sources; return $this; } - -} \ No newline at end of file +} diff --git a/src/app/PkgDefinitionManager.php b/src/app/PkgDefinitionManager.php index 8ab53c9..6e1faf4 100644 --- a/src/app/PkgDefinitionManager.php +++ b/src/app/PkgDefinitionManager.php @@ -2,7 +2,6 @@ namespace App; - use App\PkgDefinition\Definition; use GuzzleHttp\Client; use Hyperf\Contract\StdoutLoggerInterface; @@ -10,7 +9,6 @@ class PkgDefinitionManager { - #[Inject] protected StdoutLoggerInterface $logger; @@ -65,5 +63,4 @@ public function fetchPkgs(): bool } return true; } - -} \ No newline at end of file +}