Skip to content

Commit 1ae905a

Browse files
committed
Merge branch 'master' of github.com:codedge/laravel-selfupdater
* 'master' of github.com:codedge/laravel-selfupdater: Apply fixes from StyleCI (#82)
2 parents 55c4c31 + 5a98ae6 commit 1ae905a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/UpdaterManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Codedge\Updater\Contracts\UpdaterContract;
1010
use Codedge\Updater\SourceRepositoryTypes\GithubRepositoryType;
1111
use Codedge\Updater\SourceRepositoryTypes\HttpRepositoryType;
12-
use GuzzleHttp\Client;
1312
use Illuminate\Foundation\Application;
1413
use InvalidArgumentException;
1514

src/UpdaterServiceProvider.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Codedge\Updater\SourceRepositoryTypes\GithubRepositoryTypes\GithubTagType;
1010
use Codedge\Updater\SourceRepositoryTypes\HttpRepositoryType;
1111
use GuzzleHttp\Client;
12-
use Illuminate\Contracts\Container\Container;
1312
use Illuminate\Support\ServiceProvider;
1413

1514
/**
@@ -88,23 +87,23 @@ protected function registerManager()
8887
return new UpdaterManager(app());
8988
});
9089

91-
$this->app->bind(GithubRepositoryType::class, function(): GithubRepositoryType {
90+
$this->app->bind(GithubRepositoryType::class, function (): GithubRepositoryType {
9291
return new GithubRepositoryType(config('self-update.repository_types.github'));
9392
});
9493

95-
$this->app->bind(GithubBranchType::class, function(): GithubRepositoryTypeContract {
94+
$this->app->bind(GithubBranchType::class, function (): GithubRepositoryTypeContract {
9695
$client = new Client(['base_url' => GithubRepositoryTypeContract::GITHUB_URL]);
9796

9897
return new GithubBranchType(config('self-update.repository_types.github'), $client);
9998
});
10099

101-
$this->app->bind(GithubTagType::class, function(): GithubRepositoryTypeContract {
100+
$this->app->bind(GithubTagType::class, function (): GithubRepositoryTypeContract {
102101
$client = new Client(['base_url' => GithubRepositoryTypeContract::GITHUB_API_URL]);
103102

104103
return new GithubTagType(config('self-update.repository_types.github'), $client);
105104
});
106105

107-
$this->app->bind(HttpRepositoryType::class, function() {
106+
$this->app->bind(HttpRepositoryType::class, function () {
108107
return new HttpRepositoryType(new Client(), config('self-update.repository_types.http'));
109108
});
110109

0 commit comments

Comments
 (0)