mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 03:06:43 +02:00
refactor: update code base to php 8 and set phpstan lvl to 6
This commit is contained in:
parent
4a33c50fb6
commit
6b74a9e98a
124 changed files with 1810 additions and 2157 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
namespace ActivityPub\Controllers;
|
||||
|
||||
use CodeIgniter\HTTP\RedirectResponse;
|
||||
use CodeIgniter\Controller;
|
||||
|
||||
class BlockController extends Controller
|
||||
|
|
@ -17,7 +18,7 @@ class BlockController extends Controller
|
|||
*/
|
||||
protected $helpers = ['activitypub'];
|
||||
|
||||
public function attemptBlockActor()
|
||||
public function attemptBlockActor(): RedirectResponse
|
||||
{
|
||||
$rules = [
|
||||
'handle' => 'required',
|
||||
|
|
@ -51,7 +52,7 @@ class BlockController extends Controller
|
|||
return redirect()->back();
|
||||
}
|
||||
|
||||
function attemptBlockDomain()
|
||||
function attemptBlockDomain(): RedirectResponse
|
||||
{
|
||||
$rules = [
|
||||
'domain' => 'required',
|
||||
|
|
@ -71,7 +72,7 @@ class BlockController extends Controller
|
|||
return redirect()->back();
|
||||
}
|
||||
|
||||
function attemptUnblockActor()
|
||||
function attemptUnblockActor(): RedirectResponse
|
||||
{
|
||||
$rules = [
|
||||
'actor_id' => 'required',
|
||||
|
|
@ -89,7 +90,7 @@ class BlockController extends Controller
|
|||
return redirect()->back();
|
||||
}
|
||||
|
||||
function attemptUnblockDomain()
|
||||
function attemptUnblockDomain(): RedirectResponse
|
||||
{
|
||||
$rules = [
|
||||
'domain' => 'required',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue