From f24ab8b51bc421e45a96918abf6710d634110c96 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 18 Nov 2018 15:43:29 +0100 Subject: [PATCH] [Configuration] Rename $category to $section in getConfig() --- lib/Configuration.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/Configuration.php b/lib/Configuration.php index 0f500f4e..9dfd2938 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -199,18 +199,16 @@ final class Configuration { } /** - * Returns the value of a parameter identified by category and key. + * Returns the value of a parameter identified by section and key. * - * @param string $category The section name (category). + * @param string $section The section name. * @param string $key The property name (key). * @return mixed|null The parameter value. - * - * @todo Rename $category to $section for clarity. */ - public static function getConfig($category, $key) { + public static function getConfig($section, $key) { - if(array_key_exists($category, self::$config) && array_key_exists($key, self::$config[$category])) { - return self::$config[$category][$key]; + if(array_key_exists($section, self::$config) && array_key_exists($key, self::$config[$section])) { + return self::$config[$section][$key]; } return null;