mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
ci: fix lint and formatting issues
This commit is contained in:
parent
34777598dd
commit
84a6447fd4
94 changed files with 987 additions and 1104 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue