type hint

This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 18:35:13 +02:00
parent 36c99b2a34
commit 8906068ae6
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 4 additions and 4 deletions

View File

@ -179,12 +179,12 @@ class Preferences extends AbstractCleaner
/** /**
* Check well formed ns. * Check well formed ns.
* *
* @param string The ns to check * @param string $ns The ns to check
* *
* @return bool True on well formed * @return bool True on well formed
*/ */
private static function checkNs(string $ns): bool private static function checkNs(string $ns): bool
{ {
return preg_match(dcWorkspace::WS_NAME_SCHEMA, $ns); return (bool) preg_match(dcWorkspace::WS_NAME_SCHEMA, $ns);
} }
} }

View File

@ -183,12 +183,12 @@ class Settings extends AbstractCleaner
/** /**
* Check well formed ns. * Check well formed ns.
* *
* @param string The ns to check * @param string $ns The ns to check
* *
* @return bool True on well formed * @return bool True on well formed
*/ */
private static function checkNs(string $ns): bool private static function checkNs(string $ns): bool
{ {
return preg_match(dcNamespace::NS_NAME_SCHEMA, $ns); return (bool) preg_match(dcNamespace::NS_NAME_SCHEMA, $ns);
} }
} }