From db7001456424ae8f456438f2bfd0370702da6ab3 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 24 May 2020 18:32:44 +0300 Subject: [PATCH] feat(core): code fix/udpate of Config API #428 --- src/flextype/core/Config/Config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/flextype/core/Config/Config.php b/src/flextype/core/Config/Config.php index 077a4287..80e5cc83 100644 --- a/src/flextype/core/Config/Config.php +++ b/src/flextype/core/Config/Config.php @@ -38,7 +38,7 @@ class Config * * @return mixed */ - public function get(string $config, $key, $default = null) + public function get(string $config, string $key, $default = null) { $config_file = $this->getFileLocation($config); @@ -56,7 +56,7 @@ class Config * * @return bool */ - public function create(string $config, $key, $value) : bool + public function create(string $config, string $key, $value) : bool { $config_file = $this->getFileLocation($config); @@ -84,7 +84,7 @@ class Config * * @return bool */ - public function update(string $config, $key, $value) : bool + public function update(string $config, string $key, $value) : bool { $config_file = $this->getFileLocation($config); @@ -159,9 +159,9 @@ class Config /** * Get config file location * - * @param string $id Unique identifier of the entry(entries). + * @param string $config Config namespace. * - * @return string entry file location + * @return string config file location * * @access private */ @@ -173,9 +173,9 @@ class Config /** * Get config directory location * - * @param string $id Unique identifier of the entry(entries). + * @param string $config Config namespace. * - * @return string entry directory location + * @return string config directory location * * @access private */