Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Jun 28, 2024
1 parent 9c91993 commit dcf6e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"test": "vendor/bin/pest --compact",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
"analyse": "vendor/bin/phpstan analyse",
"rector": "./vendor/bin/rector --dry-run",
"rector": "vendor/bin/rector --dry-run",
"baseline": "./vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G"
},
"suggest": {
Expand Down
4 changes: 2 additions & 2 deletions src/BackupServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ public function packageRegistered(): void

$this->registerDiscordChannel();

$this->app->scoped(Config::class, function (): \Spatie\Backup\Config\Config {
$this->app->scoped(Config::class, function (): Config {
return Config::fromArray(config('backup'));
});
}

protected function registerDiscordChannel(): void
{
Notification::resolved(function (ChannelManager $service) {
$service->extend('discord', function ($app): \Spatie\Backup\Notifications\Channels\Discord\DiscordChannel {
$service->extend('discord', function ($app): DiscordChannel {
return new DiscordChannel();
});
});
Expand Down

0 comments on commit dcf6e6d

Please sign in to comment.