diff --git a/controller/main.php b/controller/main.php index ae9e4edb..f814de54 100644 --- a/controller/main.php +++ b/controller/main.php @@ -116,7 +116,6 @@ class main if (!function_exists('obtain_portal_config')) { - include($this->includes_path . 'functions_modules' . $this->php_ext); include($this->includes_path . 'functions' . $this->php_ext); } } diff --git a/includes/functions.php b/includes/functions.php index f13b878f..8322d1cd 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -7,18 +7,15 @@ * */ -// @codingStandardsIgnoreStart - /** * @ignore + * @codingStandardsIgnoreFile */ if (!defined('IN_PHPBB')) { exit; } -// @codingStandardsIgnoreEnd - // Get portal config function obtain_portal_config() { diff --git a/includes/functions_modules.php b/includes/functions_modules.php deleted file mode 100644 index 1fc8216d..00000000 --- a/includes/functions_modules.php +++ /dev/null @@ -1,61 +0,0 @@ -number_to_string($column); -} - -/** - * Convert column string to equivalent number - * - * @param string $column Column name - * - * @return int The column number; default: 0 - * @deprecated 2.1.0-RC1 (to be removed: 2.1.0) - */ -function column_string_num($column) -{ - $portal_columns = new \board3\portal\portal\columns(); - return $portal_columns->string_to_number($column); -} - -/** - * Convert column string to equivalent constant - * - * @param string $column Column name - * - * @return int Column constant; default: 0 - * @deprecated 2.1.0-RC1 (to be removed: 2.1.0) - */ -function column_string_const($column) -{ - $portal_columns = new \board3\portal\portal\columns(); - return $portal_columns->string_to_constant($column); -} diff --git a/tests/unit/functions/functions_modules_test.php b/tests/unit/functions/functions_modules_test.php deleted file mode 100644 index e6755a33..00000000 --- a/tests/unit/functions/functions_modules_test.php +++ /dev/null @@ -1,76 +0,0 @@ -assertEquals($expected, column_num_string($input)); - } - - public function data_column_string_num() - { - return array( - array(0, ''), - array(0, false), - array(1, 'left'), - array(2, 'center'), - array(3, 'right'), - array(4, 'top'), - array(5, 'bottom'), - ); - } - - /** - * @dataProvider data_column_string_num - */ - public function test_column_string_num($expected, $input) - { - $this->assertEquals($expected, column_string_num($input)); - } - - public function data_column_string_const() - { - return array( - array(0, ''), - array(0, ''), - array(2, 'left'), - array(4, 'center'), - array(8, 'right'), - array(1, 'top'), - array(16, 'bottom'), - ); - } - - /** - * @dataProvider data_column_string_const - */ - public function test_column_string_const($expected, $input) - { - $this->assertEquals($expected, column_string_const($input)); - } -}