Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhhui committed Oct 4, 2022
1 parent 7aaae19 commit 81cd4c3
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 25 deletions.
1 change: 0 additions & 1 deletion src/app/DownloadHandler/AbstractDownloadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,4 @@ protected function replaces(string $subject, array $replaces): string
}
return $subject;
}

}
3 changes: 0 additions & 3 deletions src/app/DownloadHandler/ComposerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

class ComposerHandler extends AbstractDownloadHandler
{


protected string $fullRepo = 'composer/composer';

protected string $githubBaseUrl = 'github.com';
Expand Down Expand Up @@ -69,5 +67,4 @@ protected function fetchDownloadUrlFromGetComposerOrg(Definition $definition, st
'bin' => $definition->getBin(),
]);
}

}
2 changes: 0 additions & 2 deletions src/app/DownloadHandler/DefaultHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

class DefaultHandler extends AbstractDownloadHandler
{

public function handle(string $pkgName, string $version, array $options = []): ?SplFileInfo
{
$definition = $this->getDefinition($pkgName);
Expand Down Expand Up @@ -48,5 +47,4 @@ public function versions(string $pkgName, array $options = []): array
}
return $this->fetchVersionsFromGithubRelease($definition->getRepo(), $definition->getBin());
}

}
4 changes: 1 addition & 3 deletions src/app/PkgDefinition/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\PkgDefinition;


class Definition
{
protected string $pkgName = '';
Expand Down Expand Up @@ -141,5 +140,4 @@ public function setSources(Sources $sources): Definition
$this->sources = $sources;
return $this;
}

}
}
4 changes: 1 addition & 3 deletions src/app/PkgDefinition/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\PkgDefinition;


class Job
{
protected string $os;
Expand Down Expand Up @@ -48,5 +47,4 @@ public function setJobId(string $jobId): Job
$this->jobId = $jobId;
return $this;
}

}
}
3 changes: 1 addition & 2 deletions src/app/PkgDefinition/Jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\PkgDefinition;


class Jobs
{
/**
Expand Down Expand Up @@ -33,4 +32,4 @@ public function setJobs(array $jobs): static
$this->jobs = $jobs;
return $this;
}
}
}
4 changes: 1 addition & 3 deletions src/app/PkgDefinition/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace App\PkgDefinition;


class Source
{

protected string $name;
protected string $type = 'github';
protected string $url = '';
Expand Down Expand Up @@ -49,4 +47,4 @@ public function setUrl(string $url): Source
$this->url = $url;
return $this;
}
}
}
5 changes: 1 addition & 4 deletions src/app/PkgDefinition/Sources.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace App\PkgDefinition;


class Sources
{

protected array $sources = [];

public function __construct(array $sources)
Expand Down Expand Up @@ -37,5 +35,4 @@ public function setSources(array $sources): Sources
$this->sources = $sources;
return $this;
}

}
}
5 changes: 1 addition & 4 deletions src/app/PkgDefinitionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace App;


use App\PkgDefinition\Definition;
use GuzzleHttp\Client;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Di\Annotation\Inject;

class PkgDefinitionManager
{

#[Inject]
protected StdoutLoggerInterface $logger;

Expand Down Expand Up @@ -65,5 +63,4 @@ public function fetchPkgs(): bool
}
return true;
}

}
}

0 comments on commit 81cd4c3

Please sign in to comment.