ci: fix rector issues for code-review job to pass

This commit is contained in:
Yassine Doghri 2021-05-20 17:13:13 +00:00
commit 1a024bdec7
No known key found for this signature in database
GPG key ID: 3E7F89498B960C9F
13 changed files with 38 additions and 33 deletions

View file

@ -68,7 +68,7 @@ class InstallController extends Controller
if (is_really_writable(ROOTPATH . '.env')) {
try {
$dotenv->required(['app.baseURL', 'app.adminGateway', 'app.authGateway']);
} catch (ValidationException $e) {
} catch (ValidationException) {
// form to input instance configuration
return $this->instanceConfig();
}
@ -81,7 +81,7 @@ class InstallController extends Controller
'database.default.password',
'database.default.DBPrefix',
]);
} catch (ValidationException $validationException) {
} catch (ValidationException) {
return $this->databaseConfig();
}
@ -343,7 +343,7 @@ class InstallController extends Controller
$keyVal = $key . '="' . $value . '"' . PHP_EOL;
$envData = array_map(
function ($line) use ($key, $keyVal, &$replaced) {
if (str_starts_with($line, (string) $key)) {
if (str_starts_with($line, $key)) {
$replaced = true;
return $keyVal;
}