Skip to content

Commit cb65511

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 7b24ffe commit cb65511

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/Console/Commands/ResolveDuplicateGithubUsernames.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace App\Console\Commands;
44

5-
use Illuminate\Console\Command;
65
use App\Models\User;
7-
use Illuminate\Database\Eloquent\Collection;
86
use App\Social\GithubUserApi;
97
use Exception;
8+
use Illuminate\Console\Command;
9+
use Illuminate\Database\Eloquent\Collection;
1010

1111
class ResolveDuplicateGithubUsernames extends Command
1212
{
@@ -38,18 +38,21 @@ public function handle(): void
3838
} catch (Exception $e) {
3939
$message = $e->getCode() === 404 ? "Error 404: github_id - $user->github_id" : $e->getMessage();
4040
$this->error($message);
41+
4142
continue;
4243
}
4344

4445
// If the user doesn't exist on GitHub
4546
if (! $githubUser || ! $githubUser->login()) {
4647
$user->update(['github_username' => null]);
48+
4749
continue;
4850
}
4951

5052
// If the user's github_username marked as unique
5153
if (in_array($githubUser->login(), $uniqueUsernames)) {
5254
$user->update(['github_username' => null]);
55+
5356
continue;
5457
}
5558

app/Social/GithubUserApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace App\Social;
44

5-
use Illuminate\Support\Facades\Http;
65
use Illuminate\Http\Client\ConnectionException;
6+
use Illuminate\Support\Facades\Http;
77

88
class GithubUserApi
99
{

0 commit comments

Comments
 (0)