|
9 | 9 | use Codedge\Updater\SourceRepositoryTypes\GithubRepositoryTypes\GithubTagType;
|
10 | 10 | use Codedge\Updater\SourceRepositoryTypes\HttpRepositoryType;
|
11 | 11 | use GuzzleHttp\Client;
|
12 |
| -use Illuminate\Contracts\Container\Container; |
13 | 12 | use Illuminate\Support\ServiceProvider;
|
14 | 13 |
|
15 | 14 | /**
|
@@ -88,23 +87,23 @@ protected function registerManager()
|
88 | 87 | return new UpdaterManager(app());
|
89 | 88 | });
|
90 | 89 |
|
91 |
| - $this->app->bind(GithubRepositoryType::class, function(): GithubRepositoryType { |
| 90 | + $this->app->bind(GithubRepositoryType::class, function (): GithubRepositoryType { |
92 | 91 | return new GithubRepositoryType(config('self-update.repository_types.github'));
|
93 | 92 | });
|
94 | 93 |
|
95 |
| - $this->app->bind(GithubBranchType::class, function(): GithubRepositoryTypeContract { |
| 94 | + $this->app->bind(GithubBranchType::class, function (): GithubRepositoryTypeContract { |
96 | 95 | $client = new Client(['base_url' => GithubRepositoryTypeContract::GITHUB_URL]);
|
97 | 96 |
|
98 | 97 | return new GithubBranchType(config('self-update.repository_types.github'), $client);
|
99 | 98 | });
|
100 | 99 |
|
101 |
| - $this->app->bind(GithubTagType::class, function(): GithubRepositoryTypeContract { |
| 100 | + $this->app->bind(GithubTagType::class, function (): GithubRepositoryTypeContract { |
102 | 101 | $client = new Client(['base_url' => GithubRepositoryTypeContract::GITHUB_API_URL]);
|
103 | 102 |
|
104 | 103 | return new GithubTagType(config('self-update.repository_types.github'), $client);
|
105 | 104 | });
|
106 | 105 |
|
107 |
| - $this->app->bind(HttpRepositoryType::class, function() { |
| 106 | + $this->app->bind(HttpRepositoryType::class, function () { |
108 | 107 | return new HttpRepositoryType(new Client(), config('self-update.repository_types.http'));
|
109 | 108 | });
|
110 | 109 |
|
|
0 commit comments