1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-22 16:22:58 +02:00

[ticket/15540] Check method signatures, visibility, etc

PHPBB3-15540
This commit is contained in:
rubencm
2021-03-22 19:56:48 +01:00
parent fd45ce1e91
commit 9dac66071e
9 changed files with 585 additions and 707 deletions

View File

@@ -35,7 +35,7 @@ abstract class base implements search_backend_interface
*
* @return int self::SEARCH_RESULT_NOT_IN_CACHE or self::SEARCH_RESULT_IN_CACHE or self::SEARCH_RESULT_INCOMPLETE
*/
public function obtain_ids(string $search_key, &$result_count, &$id_ary, &$start, $per_page, string $sort_dir): int
protected function obtain_ids(string $search_key, &$result_count, &$id_ary, &$start, $per_page, string $sort_dir): int
{
global $cache;
@@ -116,7 +116,7 @@ abstract class base implements search_backend_interface
*
* @return null
*/
public function save_ids(string $search_key, string $keywords, $author_ary, int $result_count, &$id_ary, int $start, string $sort_dir)
protected function save_ids(string $search_key, string $keywords, $author_ary, int $result_count, &$id_ary, int $start, string $sort_dir)
{
global $cache, $config, $db, $user;
@@ -226,7 +226,7 @@ abstract class base implements search_backend_interface
* @param array $words
* @param array|bool $authors
*/
public function destroy_cache($words, $authors = false): void
protected function destroy_cache($words, $authors = false): void
{
global $db, $cache, $config;