diff options
author | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-12-26 14:02:19 +0300 |
---|---|---|
committer | Marcin Łojewski <marcin.lojewski@mlojewski.me> | 2018-12-26 14:19:14 +0300 |
commit | 2da835b0171ccdd3efc196ef0428e1a8e123ebec (patch) | |
tree | ad62bedc8963985687c386572943658602b82a32 /lib/Properties.php | |
parent | 7f84113bca305b16a8520dfc5baf66fa14e6106b (diff) |
Crypto params validation
Diffstat (limited to 'lib/Properties.php')
-rw-r--r-- | lib/Properties.php | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/lib/Properties.php b/lib/Properties.php index 6e20ef8..5affa85 100644 --- a/lib/Properties.php +++ b/lib/Properties.php @@ -120,24 +120,6 @@ class Properties implements \ArrayAccess } /** - * Is given parameter a boolean parameter. - * - * @param $param string Parameter name. - * - * @return bool Is a boolean parameter. - */ - private function isBooleanParam($param) - { - return in_array( - $param, [ - Opt::APPEND_SALT, Opt::CASE_INSENSITIVE_USERNAME, - Opt::NAME_CHANGE, Opt::PASSWORD_CHANGE, Opt::PREPEND_SALT, - Opt::REVERSE_ACTIVE, Opt::USE_CACHE - ] - ); - } - - /** * Return an array with all supported parameters. * * @return array Array containing strings of the parameters. @@ -163,6 +145,24 @@ class Properties implements \ArrayAccess } /** + * Is given parameter a boolean parameter. + * + * @param $param string Parameter name. + * + * @return bool Is a boolean parameter. + */ + private function isBooleanParam($param) + { + return in_array( + $param, [ + Opt::APPEND_SALT, Opt::CASE_INSENSITIVE_USERNAME, + Opt::NAME_CHANGE, Opt::PASSWORD_CHANGE, Opt::PREPEND_SALT, + Opt::REVERSE_ACTIVE, Opt::USE_CACHE + ] + ); + } + + /** * Store properties in the cache memory. */ private function store() @@ -229,6 +229,7 @@ class Properties implements \ArrayAccess */ public function offsetUnset($offset) { + $this->config->deleteAppValue($this->appName, $offset); unset($this->data[$offset]); } } |