- ignored patch/diff files
- added type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
+/*.log
+/*.diff
+/*.path
/contrib/chash/chash.pos
/contrib/lfdb2/*.bin*
/contrib/lfdb2/*.out*
/contrib/chash/chash.pos
/contrib/lfdb2/*.bin*
/contrib/lfdb2/*.out*
/reports/
/vendor/
/phpunit.xml
/reports/
/vendor/
/phpunit.xml
* @param $featureName Name of the feature to be checked
* @return $isEnabled Whether the given feature is enabled
*/
* @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
// Is the cache set?
if (!isset(self::$enabledFeatures[$featureName]['is_enabled'])) {
// Generate config key
* @param $featureName Name of the feature to be checked on availability
* @return $isAvailable Whether the given feature is available
*/
* @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'])) {
// 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'])) {