Skip to content

Commit 25a61f9

Browse files
committed
fix: style code with phpstan
1 parent c84a24e commit 25a61f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Commands/ChangeOwnerConfigJson.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function handle(): void
3535
return;
3636
}
3737

38-
$user = (string) ($this->argument('user') ?? $this->getDefaultUserGroup());
39-
$group = (string) ($this->argument('group') ?? $user);
38+
$user = $this->argument('user') ?: $this->getDefaultUserGroup();
39+
$group = $this->argument('group') ?: $this->getDefaultUserGroup();
4040

4141
if (empty($user) || empty($group)) {
4242
$user = $group = $this->getDefaultUserGroup();
@@ -48,7 +48,6 @@ public function handle(): void
4848
/**
4949
* @param string $user
5050
* @param string $group
51-
*
5251
* @return void
5352
*/
5453
private function changeOwner(string $user, string $group): void

0 commit comments

Comments
 (0)