ci: fix lint and formatting issues

This commit is contained in:
Yassine Doghri 2023-02-22 16:29:45 +00:00
commit 84a6447fd4
94 changed files with 987 additions and 1104 deletions

View file

@ -115,19 +115,13 @@ class InstallController extends Controller
}
try {
$db = db_connect();
// Check if instance owner has been created, meaning install was completed
if (
$db->tableExists('users') &&
(new UserModel())->where('is_owner', true)
->first() !== null
) {
if ((new UserModel())->where('is_owner', true)
->first() !== null
) {
// 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