aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/UUIDUtil.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-04-25 21:49:18 -0700
committerzotlabs <mike@macgirvin.com>2019-04-25 21:49:18 -0700
commite6521d1cf3166a888ad58b09059d9dc5746ad795 (patch)
tree6ab3e41d888f18b2dcad351f86c3ed0628eda307 /vendor/sabre/vobject/lib/UUIDUtil.php
parent96785e8df1b325a32c93ebebf67ab5208f4088dc (diff)
parentd689778465c0439d0ceae071dab2509e3f95403e (diff)
downloadvolse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.tar.gz
volse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.tar.bz2
volse-hubzilla-e6521d1cf3166a888ad58b09059d9dc5746ad795.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'vendor/sabre/vobject/lib/UUIDUtil.php')
-rw-r--r--vendor/sabre/vobject/lib/UUIDUtil.php19
1 files changed, 8 insertions, 11 deletions
diff --git a/vendor/sabre/vobject/lib/UUIDUtil.php b/vendor/sabre/vobject/lib/UUIDUtil.php
index 24ebe3cf8..066af624c 100644
--- a/vendor/sabre/vobject/lib/UUIDUtil.php
+++ b/vendor/sabre/vobject/lib/UUIDUtil.php
@@ -13,8 +13,8 @@ namespace Sabre\VObject;
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
-class UUIDUtil {
-
+class UUIDUtil
+{
/**
* Returns a pseudo-random v4 UUID.
*
@@ -24,10 +24,9 @@ class UUIDUtil {
*
* @return string
*/
- static function getUUID() {
-
+ public static function getUUID()
+ {
return sprintf(
-
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
// 32 bits for "time_low"
@@ -57,13 +56,11 @@ class UUIDUtil {
*
* @return bool
*/
- static function validateUUID($uuid) {
-
- return preg_match(
+ public static function validateUUID($uuid)
+ {
+ return 0 !== preg_match(
'/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i',
$uuid
- ) !== 0;
-
+ );
}
-
}