<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
* @return string HTML string of the pager
* @throws \Exception
*/
- public function renderMinimal(int $itemCount)
+ public function renderMinimal(int $itemCount): string
{
$displayedItemCount = max(0, intval($itemCount));
*
* $html = $pager->renderFull();
*
- * @param integer $itemCount The total number of items including those note displayed on the page
+ * @param int $itemCount The total number of items including those note displayed on the page
* @return string HTML string of the pager
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
- public function renderFull($itemCount)
+ public function renderFull(int $itemCount): string
{
- $totalItemCount = max(0, intval($itemCount));
+ $totalItemCount = max(0, $itemCount);
$data = [];