mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 12:07:46 +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
|
|
@ -21,7 +21,7 @@ class PageController extends BaseController
|
|||
*/
|
||||
protected $page;
|
||||
|
||||
public function _remap($method, ...$params)
|
||||
public function _remap(string $method, string ...$params): mixed
|
||||
{
|
||||
if (count($params) === 0) {
|
||||
return $this->$method();
|
||||
|
|
@ -36,7 +36,7 @@ class PageController extends BaseController
|
|||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
public function index()
|
||||
public function index(): string
|
||||
{
|
||||
$cacheName = "page-{$this->page->slug}";
|
||||
if (!($found = cache($cacheName))) {
|
||||
|
|
@ -53,7 +53,7 @@ class PageController extends BaseController
|
|||
return $found;
|
||||
}
|
||||
|
||||
public function credits()
|
||||
public function credits(): string
|
||||
{
|
||||
$locale = service('request')->getLocale();
|
||||
$allPodcasts = (new PodcastModel())->findAll();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue