mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +02:00
chore: update rector to latest and use parallel for faster processing
update composer dependencies to latest
This commit is contained in:
parent
9eab54e085
commit
b6114d3d93
33 changed files with 193 additions and 270 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue