Skip to content

Commit 5cdf9be

Browse files
committed
update stubs
1 parent 526b8f1 commit 5cdf9be

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Commands/SocialCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace MailCarrier\Commands;
44

5+
use Illuminate\Support\Str;
56
use MailCarrier\Helpers\SocialiteProviders;
67
use Symfony\Component\Process\Process;
78

@@ -151,7 +152,7 @@ protected function buildEnvs(): string
151152
return <<<PHP
152153
{$envPrefix}_CLIENT_ID=
153154
{$envPrefix}_CLIENT_SECRET=
154-
{$envPrefix}_REDIRECT_URI=
155+
{$envPrefix}_REDIRECT_URI="\${APP_URL}/auth/callback"
155156
{$driverAdditionalEnv}
156157
PHP;
157158
}
@@ -170,7 +171,7 @@ protected function showVariables(): void
170171

171172
foreach (preg_split("/((\r?\n)|(\r\n?))/", $this->buildEnvs()) as $line) {
172173
if (!empty($line)) {
173-
$this->line('' . str_replace('=', '', $line));
174+
$this->line('' . Str::before($line, '='));
174175
}
175176
}
176177
}

src/Providers/stubs/AuthServiceProvider.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AuthServiceProvider extends ServiceProvider
1919
{
2020
$this->registerPolicies();
2121

22-
MailCarrier::authorizeSocialAuth(function (\Laravel\Socialite\AbstractUser $user) {
22+
MailCarrier::authorizeSocialAuth(function (\Laravel\Socialite\AbstractUser $user): bool {
2323
return false;
2424
});
2525
}

0 commit comments

Comments
 (0)