mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 03:57:45 +02:00
refactor(rector): update contributor controller's remap logic
This commit is contained in:
parent
92536ddb38
commit
cc9e4c7dc7
1 changed files with 7 additions and 6 deletions
|
|
@ -37,14 +37,15 @@ class ContributorController extends BaseController
|
|||
|
||||
$this->podcast = $podcast;
|
||||
|
||||
if (
|
||||
count($params) > 1 &&
|
||||
($this->user = (new UserModel())->getPodcastContributor((int) $params[1], (int) $params[0])) === null
|
||||
) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
if (count($params) <= 1) {
|
||||
return $this->{$method}();
|
||||
}
|
||||
|
||||
return $this->{$method}();
|
||||
if (($this->user = (new UserModel())->getPodcastContributor((int) $params[1], (int) $params[0])) !== null) {
|
||||
return $this->{$method}();
|
||||
}
|
||||
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
public function list(): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue