From feb533c848a85fb7c2aa64841515ab68f66ceece Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 2 Mar 2022 03:55:41 +0100 Subject: [PATCH] Continued: - ignored patch/diff files - added type-hints MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .gitignore | 4 +++- framework/main/classes/feature/class_FrameworkFeature.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index cf01b078..6e253c37 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +/*.log +/*.diff +/*.path /contrib/chash/chash.pos /contrib/lfdb2/*.bin* /contrib/lfdb2/*.out* @@ -19,4 +22,3 @@ /reports/ /vendor/ /phpunit.xml -/*.log diff --git a/framework/main/classes/feature/class_FrameworkFeature.php b/framework/main/classes/feature/class_FrameworkFeature.php index 0f67a15b..0557ce1b 100644 --- a/framework/main/classes/feature/class_FrameworkFeature.php +++ b/framework/main/classes/feature/class_FrameworkFeature.php @@ -74,7 +74,7 @@ class FrameworkFeature extends BaseFrameworkSystem { * @param $featureName Name of the feature to be checked * @return $isEnabled Whether the given feature is enabled */ - public static function isFeatureEnabled ($featureName) { + public static function isFeatureEnabled (string $featureName) { // Is the cache set? if (!isset(self::$enabledFeatures[$featureName]['is_enabled'])) { // Generate config key @@ -98,7 +98,7 @@ class FrameworkFeature extends BaseFrameworkSystem { * @param $featureName Name of the feature to be checked on availability * @return $isAvailable Whether the given feature is available */ - public static function isFeatureAvailable ($featureName) { + public static function isFeatureAvailable (string $featureName) { // Is the cache set? //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('FRAMEWORK-FEATURE: featureName=%s - CALLED!', $featureName)); if (!isset(self::$enabledFeatures[$featureName]['is_available'])) { -- 2.39.5