mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 12:07:46 +02:00
refactor: add strict types declaration before each file and fix activitypub issues
fix some style issues
This commit is contained in:
parent
76afc0cfa2
commit
c72f4be6d8
291 changed files with 8727 additions and 7357 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
|
|
@ -53,7 +55,7 @@ class AuthController extends MythAuthController
|
|||
}
|
||||
|
||||
// Save the user
|
||||
$allowedPostFields = array_merge(['password'], $this->config->validFields, $this->config->personalFields,);
|
||||
$allowedPostFields = array_merge(['password'], $this->config->validFields, $this->config->personalFields);
|
||||
$user = new User($this->request->getPost($allowedPostFields));
|
||||
|
||||
$this->config->requireActivation === null
|
||||
|
|
@ -80,7 +82,7 @@ class AuthController extends MythAuthController
|
|||
return redirect()
|
||||
->back()
|
||||
->withInput()
|
||||
->with('error', $activator->error() ?? lang('Auth.unknownError'),);
|
||||
->with('error', $activator->error() ?? lang('Auth.unknownError'));
|
||||
}
|
||||
|
||||
// Success!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue