Change (P)Config::set return value to bool

pull/5394/head
Hypolite Petovan 2018-07-18 02:32:35 -04:00
rodzic e0ecbd0b95
commit 0f7c7cebeb
6 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -95,7 +95,7 @@ class Config extends BaseObject
* @param string $key The configuration key to set
* @param mixed $value The value to store
*
* @return mixed Stored $value or false if the database update failed
* @return bool Operation success
*/
public static function set($family, $key, $value)
{

Wyświetl plik

@ -53,7 +53,7 @@ interface IConfigAdapter
* @param string $key The configuration key to set
* @param mixed $value The value to store
*
* @return mixed Stored $value or false if the database update failed
* @return bool Operation success
*/
public function set($cat, $k, $value);

Wyświetl plik

@ -57,7 +57,7 @@ interface IPConfigAdapter
* @param string $k The configuration key to set
* @param string $value The value to store
*
* @return mixed Stored $value or false
* @return bool Operation success
*/
public function set($uid, $cat, $k, $value);

Wyświetl plik

@ -106,7 +106,6 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter
if ($result) {
$this->in_db[$cat][$k] = true;
return $value;
}
return $result;

Wyświetl plik

@ -98,7 +98,6 @@ class JITPConfigAdapter extends BaseObject implements IPConfigAdapter
if ($result) {
$this->in_db[$uid][$cat][$k] = true;
return $value;
}
return $result;

Wyświetl plik

@ -93,7 +93,7 @@ class PConfig extends BaseObject
* @param string $key The configuration key to set
* @param string $value The value to store
*
* @return mixed Stored $value or false
* @return bool Operation success
*/
public static function set($uid, $family, $key, $value)
{