mirror of
https://github.com/friendica/friendica
synced 2025-04-22 06:30:11 +00:00
Changes:
- added some missing type-hints - fixed some documentation (e.g. empty * line between @param and @return/throws)
This commit is contained in:
parent
4a11773d7e
commit
4e5179a7b3
3 changed files with 24 additions and 22 deletions
|
@ -47,7 +47,7 @@ class BaseSearch extends BaseModule
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
public static function performContactSearch($search, $prefix = '')
|
||||
public static function performContactSearch(string $search, string $prefix = ''): string
|
||||
{
|
||||
$config = DI::config();
|
||||
|
||||
|
@ -113,7 +113,7 @@ class BaseSearch extends BaseModule
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
*/
|
||||
protected static function printResult(ResultList $results, Pager $pager, $header = '')
|
||||
protected static function printResult(ResultList $results, Pager $pager, string $header = ''): string
|
||||
{
|
||||
if ($results->getTotal() == 0) {
|
||||
notice(DI::l10n()->t('No matches'));
|
||||
|
|
|
@ -65,7 +65,7 @@ class Acl extends BaseModule
|
|||
System::jsonExit($o);
|
||||
}
|
||||
|
||||
private static function globalContactSearch()
|
||||
private static function globalContactSearch(): array
|
||||
{
|
||||
// autocomplete for global contact search (e.g. navbar search)
|
||||
$search = trim($_REQUEST['search']);
|
||||
|
@ -95,7 +95,7 @@ class Acl extends BaseModule
|
|||
return $o;
|
||||
}
|
||||
|
||||
private static function regularContactSearch(string $type)
|
||||
private static function regularContactSearch(string $type): array
|
||||
{
|
||||
$start = $_REQUEST['start'] ?? 0;
|
||||
$count = $_REQUEST['count'] ?? 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue