Review Address

This commit is contained in:
sagargurung1001@gmail.com
2022-11-24 14:12:26 +05:45
parent 9813fe2841
commit 4124173a51
3 changed files with 73 additions and 78 deletions
+11 -1
View File
@@ -26,6 +26,16 @@ class GraphHelper {
];
}
/**
* @param string $id
*
* @return int (1 = true | 0 = false)
*/
public static function isUUIDv4(string $id): int {
$regex = '/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i';
return preg_match($regex, $id);
}
/**
* @param string $baseUrl
* @param string $path
@@ -190,7 +200,7 @@ class GraphHelper {
* @return ResponseInterface
* @throws GuzzleException
*/
public static function getUserInformation(
public static function getOwnInformationAndGroupMemberships(
string $baseUrl,
string $xRequestId,
string $user,