update sabre/vobject

This commit is contained in:
Mario Vavti
2019-04-25 11:47:18 +02:00
parent f1c0797780
commit a60c2f38c6
91 changed files with 2828 additions and 3749 deletions

View File

@@ -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;
);
}
}