@@ -110,7 +110,8 @@ public static function getFileIdRegex(): string {
110110 * @return string
111111 */
112112 public static function getShareIdRegex (): string {
113- return self ::getUUIDv4Regex () . '\\\$ ' . self ::getUUIDv4Regex () . '! ' . self ::getUUIDv4Regex () . ': ' . self ::getUUIDv4Regex () . ': ' . self ::getUUIDv4Regex ();
113+ return self ::getUUIDv4Regex () . '\\\$ ' . self ::getUUIDv4Regex () . '! '
114+ . self ::getUUIDv4Regex () . ': ' . self ::getUUIDv4Regex () . ': ' . self ::getUUIDv4Regex ();
114115 }
115116
116117 /**
@@ -1387,7 +1388,11 @@ public static function getUsersOfTwoGroups(
13871388 string $ password ,
13881389 array $ groupIdArray
13891390 ): ResponseInterface {
1390- $ url = self ::getFullUrl ($ baseUrl , 'users ' . '?$filter=memberOf/any(m:m/id ' . "eq ' $ groupIdArray [0 ]') " . "and memberOf/any(m:m/id eq ' $ groupIdArray [1 ]') " );
1391+ $ url = self ::getFullUrl (
1392+ $ baseUrl ,
1393+ 'users ' . '?$filter=memberOf/any(m:m/id ' . "eq ' $ groupIdArray [0 ]') "
1394+ . "and memberOf/any(m:m/id eq ' $ groupIdArray [1 ]') "
1395+ );
13911396 return HttpRequestHelper::get (
13921397 $ url ,
13931398 $ xRequestId ,
@@ -1416,7 +1421,11 @@ public static function getUsersFromOneOrOtherGroup(
14161421 string $ firstGroup ,
14171422 string $ secondGroup
14181423 ): ResponseInterface {
1419- $ url = self ::getFullUrl ($ baseUrl , 'users ' . '?$filter=memberOf/any(m:m/id ' . "eq ' $ firstGroup') " . "or memberOf/any(m:m/id eq ' $ secondGroup') " );
1424+ $ url = self ::getFullUrl (
1425+ $ baseUrl ,
1426+ 'users ' . '?$filter=memberOf/any(m:m/id '
1427+ . "eq ' $ firstGroup') " . "or memberOf/any(m:m/id eq ' $ secondGroup') "
1428+ );
14201429 return HttpRequestHelper::get (
14211430 $ url ,
14221431 $ xRequestId ,
@@ -1472,7 +1481,11 @@ public static function getUsersWithFilterRolesAssignmentAndMemberOf(
14721481 string $ roleId ,
14731482 string $ groupId
14741483 ): ResponseInterface {
1475- $ url = self ::getFullUrl ($ baseUrl , 'users ' . '?$filter=appRoleAssignments/any(m:m/appRoleId ' . "eq ' $ roleId') " . "and memberOf/any(m:m/id eq ' $ groupId') " );
1484+ $ url = self ::getFullUrl (
1485+ $ baseUrl ,
1486+ 'users ' . '?$filter=appRoleAssignments/any(m:m/appRoleId '
1487+ . "eq ' $ roleId') " . "and memberOf/any(m:m/id eq ' $ groupId') "
1488+ );
14761489 return HttpRequestHelper::get (
14771490 $ url ,
14781491 $ xRequestId ,
@@ -1669,7 +1682,15 @@ public static function switchSystemLanguage(
16691682 ): ResponseInterface {
16701683 $ fullUrl = self ::getFullUrl ($ baseUrl , 'me ' );
16711684 $ payload ['preferredLanguage ' ] = $ language ;
1672- return HttpRequestHelper::sendRequest ($ fullUrl , $ xRequestId , 'PATCH ' , $ user , $ password , null , \json_encode ($ payload ));
1685+ return HttpRequestHelper::sendRequest (
1686+ $ fullUrl ,
1687+ $ xRequestId ,
1688+ 'PATCH ' ,
1689+ $ user ,
1690+ $ password ,
1691+ null ,
1692+ \json_encode ($ payload )
1693+ );
16731694 }
16741695
16751696 /**
@@ -1810,7 +1831,13 @@ public static function sendSharingInvitation(
18101831 ?string $ expirationDateTime
18111832 ): ResponseInterface {
18121833 $ url = self ::getBetaFullUrl ($ baseUrl , "drives/ $ spaceId/items/ $ itemId/invite " );
1813- $ body = self ::createShareInviteBody ($ shareeIds , $ shareTypes , $ permissionsRole , $ permissionsAction , $ expirationDateTime );
1834+ $ body = self ::createShareInviteBody (
1835+ $ shareeIds ,
1836+ $ shareTypes ,
1837+ $ permissionsRole ,
1838+ $ permissionsAction ,
1839+ $ expirationDateTime
1840+ );
18141841 return HttpRequestHelper::post (
18151842 $ url ,
18161843 $ xRequestId ,
@@ -2052,7 +2079,7 @@ public static function disableShareSync(
20522079 string $ password ,
20532080 string $ itemId ,
20542081 string $ shareSpaceId
2055- ):ResponseInterface {
2082+ ): ResponseInterface {
20562083 $ url = self ::getBetaFullUrl ($ baseUrl , "drives/ $ shareSpaceId/items/ $ itemId " );
20572084 return HttpRequestHelper::delete (
20582085 $ url ,
@@ -2083,7 +2110,7 @@ public static function hideOrUnhideShare(
20832110 string $ itemId ,
20842111 string $ shareSpaceId ,
20852112 array $ body
2086- ):ResponseInterface {
2113+ ): ResponseInterface {
20872114 $ url = self ::getBetaFullUrl ($ baseUrl , "drives/ $ shareSpaceId/items/ $ itemId " );
20882115 return HttpRequestHelper::sendRequest (
20892116 $ url ,
@@ -2186,7 +2213,13 @@ public static function sendSharingInvitationForDrive(
21862213 ?string $ expirationDateTime
21872214 ): ResponseInterface {
21882215 $ url = self ::getBetaFullUrl ($ baseUrl , "drives/ $ spaceId/root/invite " );
2189- $ body = self ::createShareInviteBody ($ shareeIds , $ shareTypes , $ permissionsRole , $ permissionsAction , $ expirationDateTime );
2216+ $ body = self ::createShareInviteBody (
2217+ $ shareeIds ,
2218+ $ shareTypes ,
2219+ $ permissionsRole ,
2220+ $ permissionsAction ,
2221+ $ expirationDateTime
2222+ );
21902223
21912224 return HttpRequestHelper::post (
21922225 $ url ,
0 commit comments