mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +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
|
|
@ -41,7 +41,7 @@ class NoteController extends Controller
|
|||
$this->config = config('ActivityPub');
|
||||
}
|
||||
|
||||
public function _remap(string $method, string ...$params)
|
||||
public function _remap(string $method, string ...$params): mixed
|
||||
{
|
||||
if (!($this->note = model('NoteModel')->getNoteById($params[0]))) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
|
|
@ -63,8 +63,7 @@ class NoteController extends Controller
|
|||
|
||||
public function replies(): RedirectResponse
|
||||
{
|
||||
/** get note replies
|
||||
* @var NoteModel */
|
||||
/** get note replies */
|
||||
$noteReplies = model('NoteModel')
|
||||
->where(
|
||||
'in_reply_to_id',
|
||||
|
|
@ -216,10 +215,7 @@ class NoteController extends Controller
|
|||
return redirect()->back();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed|ResponseInterface
|
||||
*/
|
||||
public function attemptRemoteAction(string $action)
|
||||
public function attemptRemoteAction(string $action): RedirectResponse|ResponseInterface
|
||||
{
|
||||
$rules = [
|
||||
'handle' =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue