mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
refactor(rector): update contributor controller's remap logic
This commit is contained in:
parent
92536ddb38
commit
cc9e4c7dc7
@ -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…
x
Reference in New Issue
Block a user