diff --git a/src/Cleaner/Preferences.php b/src/Cleaner/Preferences.php index 65e4f51..6fb897e 100644 --- a/src/Cleaner/Preferences.php +++ b/src/Cleaner/Preferences.php @@ -179,12 +179,12 @@ class Preferences extends AbstractCleaner /** * Check well formed ns. * - * @param string The ns to check + * @param string $ns The ns to check * * @return bool True on well formed */ private static function checkNs(string $ns): bool { - return preg_match(dcWorkspace::WS_NAME_SCHEMA, $ns); + return (bool) preg_match(dcWorkspace::WS_NAME_SCHEMA, $ns); } } diff --git a/src/Cleaner/Settings.php b/src/Cleaner/Settings.php index 2fb80e5..f7feff5 100644 --- a/src/Cleaner/Settings.php +++ b/src/Cleaner/Settings.php @@ -183,12 +183,12 @@ class Settings extends AbstractCleaner /** * Check well formed ns. * - * @param string The ns to check + * @param string $ns The ns to check * * @return bool True on well formed */ private static function checkNs(string $ns): bool { - return preg_match(dcNamespace::NS_NAME_SCHEMA, $ns); + return (bool) preg_match(dcNamespace::NS_NAME_SCHEMA, $ns); } }