mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11515] Refactoring changes.
Refactoring the code as suggested. PHPBB3-11515
This commit is contained in:
parent
b98acb9409
commit
f18743eb50
1 changed files with 2 additions and 3 deletions
|
@ -150,12 +150,11 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||||
/**
|
/**
|
||||||
* Checks configuration option's value only if the new_value matches the
|
* Checks configuration option's value only if the new_value matches the
|
||||||
* current configuration value and the configuration value does exist.Called
|
* current configuration value and the configuration value does exist.Called
|
||||||
*only after set_atomic has been called.
|
* only after set_atomic has been called.
|
||||||
*
|
*
|
||||||
* @param string $key The configuration option's name
|
* @param string $key The configuration option's name
|
||||||
* @param string $old_value Current configuration value
|
|
||||||
* @param string $new_value New configuration value
|
* @param string $new_value New configuration value
|
||||||
* @throws \phpbb\exception\http_exception when configuration value is set and not equal to *new_value.
|
* @throws \phpbb\exception\http_exception when config value is set and not equal to new_value.
|
||||||
* @return bool True if the value was changed, false otherwise.
|
* @return bool True if the value was changed, false otherwise.
|
||||||
*/
|
*/
|
||||||
public function ensure_lock($key, $new_value)
|
public function ensure_lock($key, $new_value)
|
||||||
|
|
Loading…
Add table
Reference in a new issue