1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 06:21:19 +02:00

[ticket/17535] Convert config files, make data providers static

PHPBB-17535
This commit is contained in:
rxu
2025-07-16 17:36:45 +07:00
parent d7db296eab
commit 8a99024087
199 changed files with 879 additions and 852 deletions

View File

@@ -26,7 +26,7 @@ class phpbb_textformatter_s9e_acp_utils_test extends phpbb_test_case
$this->assertEquals($expected, $actual);
}
public function get_analyse_bbcode_tests()
public static function get_analyse_bbcode_tests()
{
return [
[

View File

@@ -34,7 +34,7 @@ class phpbb_textformatter_s9e_bbcode_merger_test extends phpbb_test_case
$this->assertSame($expected_template, $merged['template']);
}
public function get_merge_bbcodes_tests()
public static function get_merge_bbcodes_tests()
{
return [
[

View File

@@ -45,7 +45,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
$this->assertSame($expected, $renderer->render($parsed_text));
}
public function get_default_formatting_tests()
public static function get_default_formatting_tests()
{
return array(
array(

View File

@@ -76,7 +76,7 @@ class mention_helper_test extends phpbb_database_test_case
$this->mention_helper = $phpbb_container->get('text_formatter.s9e.mention_helper');
}
public function inject_metadata_data()
public static function inject_metadata_data()
{
return [
[
@@ -99,7 +99,7 @@ class mention_helper_test extends phpbb_database_test_case
$this->assertStringContainsString($expected_profile_substring, $result);
}
public function get_mentioned_user_ids_data()
public static function get_mentioned_user_ids_data()
{
return [
[

View File

@@ -131,7 +131,7 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
call_user_func_array(array($parser, $adapter_method), (array) $adapter_arg);
}
public function get_options_tests()
public static function get_options_tests()
{
return array(
array(

View File

@@ -93,7 +93,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
$this->assertSame($expected, $renderer->render($original));
}
public function get_options_cases()
public static function get_options_cases()
{
return array(
array(
@@ -141,7 +141,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
$this->assertSame($expected, $container->get('text_formatter.renderer')->render($original));
}
public function get_default_options_cases()
public static function get_default_options_cases()
{
return array(
array(
@@ -278,7 +278,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
$this->assertTrue($renderer->{'get_' . $option_name}());
}
public function get_option_names()
public static function get_option_names()
{
return array(
array('viewcensors'),

View File

@@ -24,7 +24,7 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
$this->assertSame($expected, $utils->unparse($original));
}
public function get_unparse_tests()
public static function get_unparse_tests()
{
return array(
array(
@@ -53,7 +53,7 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
$this->assertSame($expected, $utils->clean_formatting($original));
}
public function get_clean_formatting_tests()
public static function get_clean_formatting_tests()
{
return array(
array(
@@ -87,7 +87,7 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
$this->assertSame($expected, $utils->get_outermost_quote_authors($parser->parse($original)));
}
public function get_outermost_quote_authors_tests()
public static function get_outermost_quote_authors_tests()
{
return array(
array(
@@ -124,7 +124,7 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
$this->assertSame($expected, $utils->generate_quote($text, $params));
}
public function get_generate_quote_tests()
public static function get_generate_quote_tests()
{
return array(
array(
@@ -248,7 +248,7 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
$this->assertSame($expected, $actual);
}
public function get_remove_bbcode_tests()
public static function get_remove_bbcode_tests()
{
return array(
array(