aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/migration/tool/config.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-02-04 13:46:23 -0600
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-02-04 13:46:23 -0600
commit77df9109b61ec93c28a8120a8d81a045961b24ac (patch)
treee843575a8f9dbd4f1fbb6e7aa1b13e1f1ec0059f /phpBB/includes/db/migration/tool/config.php
parent75244eafd946bb157ec5e54d5ec2ba3a309ae3ab (diff)
downloadforums-77df9109b61ec93c28a8120a8d81a045961b24ac.tar
forums-77df9109b61ec93c28a8120a8d81a045961b24ac.tar.gz
forums-77df9109b61ec93c28a8120a8d81a045961b24ac.tar.bz2
forums-77df9109b61ec93c28a8120a8d81a045961b24ac.tar.xz
forums-77df9109b61ec93c28a8120a8d81a045961b24ac.zip
[feature/migrations] Remove default values from necessary parameters
Clean up some comments PHPBB3-9737
Diffstat (limited to 'phpBB/includes/db/migration/tool/config.php')
-rw-r--r--phpBB/includes/db/migration/tool/config.php34
1 files changed, 18 insertions, 16 deletions
diff --git a/phpBB/includes/db/migration/tool/config.php b/phpBB/includes/db/migration/tool/config.php
index 6ae419d5e7..d9cc20053e 100644
--- a/phpBB/includes/db/migration/tool/config.php
+++ b/phpBB/includes/db/migration/tool/config.php
@@ -38,12 +38,14 @@ class phpbb_db_migration_tool_config implements phpbb_db_migration_tool_interfac
/**
* Add a config setting.
*
- * @param string $config_name The name of the config setting you would like to add
+ * @param string $config_name The name of the config setting
+ * you would like to add
* @param mixed $config_value The value of the config setting
- * @param bool $is_dynamic True if it is dynamic (changes very often) and should not be stored in the cache, false if not.
+ * @param bool $is_dynamic True if it is dynamic (changes very often)
+ * and should not be stored in the cache, false if not.
* @return null
*/
- public function add($config_name, $config_value = '', $is_dynamic = false)
+ public function add($config_name, $config_value, $is_dynamic = false)
{
if (isset($this->config[$config_name]))
{
@@ -56,11 +58,12 @@ class phpbb_db_migration_tool_config implements phpbb_db_migration_tool_interfac
/**
* Update an existing config setting.
*
- * @param string $config_name The name of the config setting you would like to update
+ * @param string $config_name The name of the config setting you would
+ * like to update
* @param mixed $config_value The value of the config setting
* @return null
*/
- public function update($config_name, $config_value = '')
+ public function update($config_name, $config_value)
{
if (!isset($this->config[$config_name]))
{
@@ -71,14 +74,17 @@ class phpbb_db_migration_tool_config implements phpbb_db_migration_tool_interfac
}
/**
- * Update a config setting if the first argument equal to the current config value
+ * Update a config setting if the first argument equal to the
+ * current config value
*
- * @param bool $compare If equal to the current config value, will be updated to the new config value, otherwise not
- * @param string $config_name The name of the config setting you would like to update
+ * @param string $compare If equal to the current config value, will be
+ * updated to the new config value, otherwise not
+ * @param string $config_name The name of the config setting you would
+ * like to update
* @param mixed $config_value The value of the config setting
* @return null
*/
- public function update_if_equals($compare, $config_name, $config_value = '')
+ public function update_if_equals($compare, $config_name, $config_value)
{
if (!isset($this->config[$config_name]))
{
@@ -91,7 +97,8 @@ class phpbb_db_migration_tool_config implements phpbb_db_migration_tool_interfac
/**
* Remove an existing config setting.
*
- * @param string $config_name The name of the config setting you would like to remove
+ * @param string $config_name The name of the config setting you would
+ * like to remove
* @return null
*/
public function remove($config_name)
@@ -105,12 +112,7 @@ class phpbb_db_migration_tool_config implements phpbb_db_migration_tool_interfac
}
/**
- * Reverse an original install action
- *
- * First argument is the original call to the class (e.g. add, remove)
- * After the first argument, send the original arguments to the function in the original call
- *
- * @return null
+ * {@inheritdoc}
*/
public function reverse()
{