mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add curly braces
This commit is contained in:
@@ -17,8 +17,9 @@ class uuid
|
||||
*/
|
||||
public static function generate_v3($namespace, $name)
|
||||
{
|
||||
if ( ! self::is_valid($namespace))
|
||||
if ( ! self::is_valid($namespace)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get hexadecimal components of namespace
|
||||
$nhex = str_replace(array('-', '{', '}'), '', $namespace);
|
||||
@@ -82,8 +83,9 @@ class uuid
|
||||
*/
|
||||
public static function generate_v5($namespace, $name)
|
||||
{
|
||||
if ( ! self::is_valid($namespace))
|
||||
if ( ! self::is_valid($namespace)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get hexadecimal components of namespace
|
||||
$nhex = str_replace(array('-', '{', '}'), '', $namespace);
|
||||
|
Reference in New Issue
Block a user