chore: update rector to latest and use parallel for faster processing

update composer dependencies to latest
This commit is contained in:
Yassine Doghri 2022-09-28 14:00:05 +00:00
commit b6114d3d93
33 changed files with 193 additions and 270 deletions

View file

@ -121,10 +121,12 @@ class InstallController extends Controller
if (
$db->tableExists('users') &&
(new UserModel())->countAll() > 0
) {
) {
// if so, show a 404 page
throw PageNotFoundException::forPageNotFound();
}
/** @noRector */
} catch (DatabaseException) {
// Could not connect to the database
// show database config view to fix value
@ -355,7 +357,7 @@ class InstallController extends Controller
$replaced = false;
$keyVal = $key . '="' . $value . '"' . PHP_EOL;
$envData = array_map(
function ($line) use ($key, $keyVal, &$replaced) {
static function ($line) use ($key, $keyVal, &$replaced) {
if (str_starts_with($line, $key)) {
$replaced = true;
return $keyVal;