mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
refactor: add strict types declaration before each file and fix activitypub issues
fix some style issues
This commit is contained in:
parent
76afc0cfa2
commit
c72f4be6d8
291 changed files with 8727 additions and 7357 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* @copyright 2020 Podlibre
|
||||
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
||||
|
|
@ -29,8 +31,8 @@ class AnalyticsController extends Controller
|
|||
$this->methodName = 'getData' . (count($params) >= 3 ? $params[2] : '');
|
||||
|
||||
return $this->{$method}(
|
||||
$params[0],
|
||||
count($params) >= 4 ? $params[3] : null,
|
||||
(int) $params[0],
|
||||
count($params) >= 4 ? (int) $params[3] : null,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -39,9 +41,9 @@ class AnalyticsController extends Controller
|
|||
$methodName = $this->methodName;
|
||||
|
||||
if ($episodeId === null) {
|
||||
return $this->response->setJSON($this->analyticsModel->{$methodName}($podcastId),);
|
||||
return $this->response->setJSON($this->analyticsModel->{$methodName}($podcastId));
|
||||
}
|
||||
|
||||
return $this->response->setJSON($this->analyticsModel->{$methodName}($podcastId, $episodeId),);
|
||||
return $this->response->setJSON($this->analyticsModel->{$methodName}($podcastId, $episodeId));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue