From 9a5773c39040c55e6f92f65002cc8b552b3bbe16 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Sat, 10 Jun 2023 14:06:10 +0800 Subject: [PATCH] * Optimize code. --- module/release/control.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/module/release/control.php b/module/release/control.php index 930c9c9079..f24f3d572e 100644 --- a/module/release/control.php +++ b/module/release/control.php @@ -171,18 +171,18 @@ class release extends control /** * View a release. * - * @param string|int $releaseID - * @param string $type - * @param string $link - * @param string $param - * @param string $orderBy - * @param string|int $recTotal - * @param string|int $recPerPage - * @param string|int $pageID + * @param int $releaseID + * @param string $type + * @param string $link + * @param string $param + * @param string $orderBy + * @param int $recTotal + * @param int $recPerPage + * @param int $pageID * @access public * @return void */ - public function view(string|int $releaseID, string $type = 'story', string $link = 'false', string $param = '', string $orderBy = 'id_desc', string|int $recTotal = 0, string|int $recPerPage = 100, string|int $pageID = 1) + public function view(int $releaseID, string $type = 'story', string $link = 'false', string $param = '', string $orderBy = 'id_desc', int $recTotal = 0, int $recPerPage = 100, int $pageID = 1) { $releaseID = (int)$releaseID; $release = $this->release->getByID($releaseID, true);