Skip to content

Commit 48a08e9

Browse files
author
Backstage
committed
chore(deps): upgrade github actions checkout (#27)
1 parent 88f5bc3 commit 48a08e9

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
with:
2020
ref: ${{ github.head_ref }}
2121

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 5
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717

1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Checkout code
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636

3737
- name: Setup PHP
3838
uses: shivammathur/setup-php@v2

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
ref: main
2020

helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function geo($attribute = '')
55
{
66
if (! session('geo')) {
7-
$geo = json_decode(@file_get_contents('https://pro.ip-api.com/json/'.request()->ip().'?key='.config('services.ip-api.key')));
7+
$geo = json_decode(@file_get_contents('https://pro.ip-api.com/json/' . request()->ip() . '?key=' . config('services.ip-api.key')));
88

99
session()->put('geo', $geo);
1010
} else {

src/Console/Commands/DeleteUser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DeleteUser extends Command
1818
public function handle()
1919
{
2020
if ($this->option('force-delete') && posix_geteuid() !== 0) {
21-
error('This command must be run as root. Try: sudo php artisan '.str($this->signature)->replace(['{', '}'], '')->toString());
21+
error('This command must be run as root. Try: sudo php artisan ' . str($this->signature)->replace(['{', '}'], '')->toString());
2222

2323
return Command::FAILURE;
2424
}
@@ -33,7 +33,7 @@ public function handle()
3333

3434
$users = multiselect(
3535
label: 'Select the user(s) to delete',
36-
options: $userCollection->pluck('name', 'id')->map(fn ($name, $id) => $name.' (ID: '.$id.')')->toArray(),
36+
options: $userCollection->pluck('name', 'id')->map(fn ($name, $id) => $name . ' (ID: ' . $id . ')')->toArray(),
3737
required: true,
3838
);
3939

@@ -59,7 +59,7 @@ public function handle()
5959
$user->delete();
6060
}
6161

62-
$this->info($this->option('force-delete') ? 'Force deleted' : 'Deleted'.' user: '.$user->name);
62+
$this->info($this->option('force-delete') ? 'Force deleted' : 'Deleted' . ' user: ' . $user->name);
6363
}
6464
}
6565
}

src/Console/Commands/ListUsersCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle(): void
3131
return;
3232
}
3333

34-
info('Found '.$users->count().' user(s):');
34+
info('Found ' . $users->count() . ' user(s):');
3535

3636
$this->renderTable($users);
3737

@@ -46,7 +46,7 @@ public function handle(): void
4646
$userId = search(
4747
label: 'Search for the user that should receive the mail',
4848
options: fn (string $value) => strlen($value) > 0
49-
? User::whereLike('name', "%{$value}%")->pluck('name', 'id')->map(fn ($name, $id) => $name.' (ID: '.$id.')')->toArray()
49+
? User::whereLike('name', "%{$value}%")->pluck('name', 'id')->map(fn ($name, $id) => $name . ' (ID: ' . $id . ')')->toArray()
5050
: []
5151
);
5252

@@ -169,7 +169,7 @@ protected function renderTable(Collection $users)
169169
$user->email,
170170
$user->hasVerifiedEmail() ? 'Yes' : 'No',
171171
$user->getRoleNames()->implode(', ') ?: 'No roles',
172-
$user->created_at->format('Y-m-d H:i:s').' ('.$user->created_at->diffForHumans().')',
172+
$user->created_at->format('Y-m-d H:i:s') . ' (' . $user->created_at->diffForHumans() . ')',
173173

174174
])->toArray());
175175
}

src/Console/Commands/MakeUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function handle(): int
106106
$this->line("Name: {$user->name}");
107107
$this->line("Email: {$user->email}");
108108
if ($selectedRole) {
109-
$this->line('Role: '.($selectedRole instanceof Role ? $selectedRole->name : $selectedRole));
109+
$this->line('Role: ' . ($selectedRole instanceof Role ? $selectedRole->name : $selectedRole));
110110
}
111111
$this->line("Password: {$password}");
112112

src/Domain/Email/Actions/ValidateEmail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ValidateEmail
88
{
99
use AsAction;
1010

11-
public function handle(string|array $email): bool|array
11+
public function handle(string | array $email): bool | array
1212
{
1313
if (is_array($email)) {
1414
return $this->validateMultipleEmails($email);

src/LaravelUsersServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function configurePackage(Package $package): void
3131

3232
protected function getMigrations(): array
3333
{
34-
$migrationPath = __DIR__.'/../database/migrations/';
34+
$migrationPath = __DIR__ . '/../database/migrations/';
3535

3636
$files = File::allFiles($migrationPath);
3737

0 commit comments

Comments
 (0)