Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 26, 2024
1 parent 7538b2c commit d0f3a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Feature/Composer/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ public function getConfigTreeBuilder(): TreeBuilder
->always(function ($value) {
if (isset($value['url']) && isset($value['token']) && !isset($value['type'])) {
$value['type'] = 'http-basic';
$value['url'] = substr($value['url'], strpos($value['url'], 'http-basic.') + strlen('http-basic.'));
$value['username'] = $value['username'] ?? 'token';
$value['password'] = $value['password'] ?? $value['token'];
$value['url'] = substr((string) $value['url'], strpos((string) $value['url'], 'http-basic.') + strlen('http-basic.'));
$value['username'] ??= 'token';
$value['password'] ??= $value['token'];
unset($value['token']);
}

Expand Down

0 comments on commit d0f3a06

Please sign in to comment.