aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/UUIDUtil.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-04-25 11:24:09 +0200
committerMario <mario@mariovavti.com>2019-04-25 11:24:09 +0200
commitf1c07977809ce3221286d53e99f0d91145b1166f (patch)
tree4c067a3b701ea56f10070c386b26a30f93666eb0 /vendor/sabre/vobject/lib/UUIDUtil.php
parent701167bc125700efb3e6ce759b85bcb4d36ee42e (diff)
downloadvolse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.gz
volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.bz2
volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.zip
Revert "update composer libs"
This reverts commit e779335d060b3a51d6a144d23af4097ae6801473
Diffstat (limited to 'vendor/sabre/vobject/lib/UUIDUtil.php')
-rw-r--r--vendor/sabre/vobject/lib/UUIDUtil.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/vendor/sabre/vobject/lib/UUIDUtil.php b/vendor/sabre/vobject/lib/UUIDUtil.php
index 066af624c..24ebe3cf8 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,9 +24,10 @@ class UUIDUtil
*
* @return string
*/
- public static function getUUID()
- {
+ static function getUUID() {
+
return sprintf(
+
'%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
// 32 bits for "time_low"
@@ -56,11 +57,13 @@ class UUIDUtil
*
* @return bool
*/
- public static function validateUUID($uuid)
- {
- return 0 !== preg_match(
+ static function validateUUID($uuid) {
+
+ return 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;
+
}
+
}