mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-10 18:26:44 +02:00
chore: update CI to v4.6.3 + all php and js dependencies
This commit is contained in:
parent
96b2df15b0
commit
346c00e7b5
206 changed files with 6239 additions and 5336 deletions
|
|
@ -30,7 +30,7 @@ class ContributorController extends BaseController
|
|||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
if (! ($podcast = (new PodcastModel())->getPodcastById((int) $params[0])) instanceof Podcast) {
|
||||
if (! ($podcast = new PodcastModel()->getPodcastById((int) $params[0])) instanceof Podcast) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ class ContributorController extends BaseController
|
|||
return $this->{$method}();
|
||||
}
|
||||
|
||||
if (($this->contributor = (new UserModel())->getPodcastContributor(
|
||||
if (($this->contributor = new UserModel()->getPodcastContributor(
|
||||
(int) $params[1],
|
||||
(int) $params[0],
|
||||
)) instanceof User) {
|
||||
|
|
@ -67,7 +67,8 @@ class ContributorController extends BaseController
|
|||
{
|
||||
$data = [
|
||||
'podcast' => $this->podcast,
|
||||
'contributor' => (new UserModel())->getPodcastContributor($this->contributor->id, $this->podcast->id),
|
||||
'contributor' => new UserModel()
|
||||
->getPodcastContributor($this->contributor->id, $this->podcast->id),
|
||||
];
|
||||
|
||||
$this->setHtmlHead(lang('Contributor.view', [
|
||||
|
|
@ -85,7 +86,8 @@ class ContributorController extends BaseController
|
|||
{
|
||||
helper('form');
|
||||
|
||||
$users = (new UserModel())->findAll();
|
||||
$users = new UserModel()
|
||||
->findAll();
|
||||
$contributorOptions = array_reduce(
|
||||
$users,
|
||||
static function (array $result, User $user): array {
|
||||
|
|
@ -128,7 +130,8 @@ class ContributorController extends BaseController
|
|||
public function createAction(): RedirectResponse
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = (new UserModel())->find((int) $this->request->getPost('user'));
|
||||
$user = new UserModel()
|
||||
->find((int) $this->request->getPost('user'));
|
||||
|
||||
if (get_podcast_group($user, $this->podcast->id)) {
|
||||
return redirect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue