@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $abHierarchyRows = mapi_table_queryallrows($hierarchyTable, [PR_AB_PROVIDER_ID, PR_ENTRYID]); |
243 | 243 | |
244 | 244 | // Look for the 'Contacts Folders' |
245 | - for ($i = 0,$len = count($abHierarchyRows); $i < $len; ++$i) { |
|
245 | + for ($i = 0, $len = count($abHierarchyRows); $i < $len; ++$i) { |
|
246 | 246 | // Check if the folder matches the Contact Provider GUID |
247 | 247 | if ($abHierarchyRows[$i][PR_AB_PROVIDER_ID] == MUIDZCSAB) { |
248 | 248 | $abContactContainerEntryid = $abHierarchyRows[$i][PR_ENTRYID]; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | $abContactContainerHierarchyRows = mapi_table_queryallrows($abContactContainerHierarchyTable, [PR_DISPLAY_NAME, PR_OBJECT_TYPE, PR_ENTRYID]); |
259 | 259 | |
260 | 260 | // Loop through all the contact folders found under the 'Contacts Folders' hierarchy |
261 | - for ($j = 0,$len = count($abContactContainerHierarchyRows); $j < $len; ++$j) { |
|
261 | + for ($j = 0, $len = count($abContactContainerHierarchyRows); $j < $len; ++$j) { |
|
262 | 262 | // Open, get contents table, restrict, sort and then merge the result in the list of $rows |
263 | 263 | $abContactFolder = mapi_ab_openentry($ab, $abContactContainerHierarchyRows[$j][PR_ENTRYID]); |
264 | 264 | $abContactFolderTable = mapi_folder_getcontentstable($abContactFolder, MAPI_DEFERRED_ERRORS); |
@@ -850,7 +850,7 @@ |
||
850 | 850 | ], |
851 | 851 | [ |
852 | 852 | RES_OR, |
853 | - $tempRestrictions, // all group restrictions |
|
853 | + $tempRestrictions, // all group restrictions |
|
854 | 854 | ], |
855 | 855 | ], |
856 | 856 | ], |
@@ -496,12 +496,12 @@ |
||
496 | 496 | $data["search_meta"]["searchfolder_entryid"] = $entryid; |
497 | 497 | $data["search_meta"]["search_store_entryid"] = $action["store_entryid"]; |
498 | 498 | $data["search_meta"]["searchstate"] = $searchState; |
499 | - $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
499 | + $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
500 | 500 | |
501 | 501 | $data["page"] = []; |
502 | 502 | $data["page"]["start"] = 0; |
503 | 503 | $data["page"]["rowcount"] = $rowCount; |
504 | - $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
504 | + $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
505 | 505 | |
506 | 506 | if (!empty($listData)) { |
507 | 507 | $data["item"] = array_merge([], $listData); |
@@ -575,7 +575,7 @@ |
||
575 | 575 | ]; |
576 | 576 | |
577 | 577 | $rule[PR_RULE_NAME] = ''; |
578 | - $rule[PR_RULE_PROVIDER_DATA] = ''; // 0 byte binary string |
|
578 | + $rule[PR_RULE_PROVIDER_DATA] = ''; // 0 byte binary string |
|
579 | 579 | $rule[PR_RULE_STATE] = ST_ENABLED; |
580 | 580 | $rule[PR_RULE_LEVEL] = 0; |
581 | 581 | $rule[PR_RULE_SEQUENCE] = 0; |
@@ -316,7 +316,7 @@ |
||
316 | 316 | throw new MAPIException(null, MAPI_E_NO_ACCESS); |
317 | 317 | } |
318 | 318 | |
319 | - $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function ($item) { |
|
319 | + $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function($item) { |
|
320 | 320 | return $item['props']['access'] === 0; |
321 | 321 | }); |
322 | 322 | if (count($noPermissionFolders) >= $folders) { |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | if (strcspn($attvalue, "\t\r\n\0 ") !== strlen($attvalue)) { |
56 | 56 | $attvalue = str_replace( |
57 | 57 | ["\t", "\r", "\n", "\0", " "], |
58 | - ['', '', '', '', ''], |
|
58 | + ['', '', '', '', ''], |
|
59 | 59 | $attvalue |
60 | 60 | ); |
61 | 61 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | "\xE2\x81\xBF", /* Shift JIS FULLWIDTH SUPERSCRIPT N */ |
123 | 123 | "\xCA\x9F", /* L UNICODE IPA Extension */ |
124 | 124 | "\xCA\x80", /* R UNICODE IPA Extension */ |
125 | - "\xC9\xB4", ], /* N UNICODE IPA Extension */ |
|
125 | + "\xC9\xB4", ], /* N UNICODE IPA Extension */ |
|
126 | 126 | ['l', 'l', 'r', 'r', 'n', 'n', |
127 | 127 | 'E', 'E', 'e', 'e', 'X', 'X', 'x', 'x', 'P', 'P', 'p', 'p', 'R', 'R', 'r', 'r', 'S', 'S', 's', 's', 'I', 'I', |
128 | 128 | 'i', 'i', 'O', 'O', 'o', 'o', 'N', 'N', 'n', 'n', 'L', 'L', 'l', 'l', 'U', 'U', 'u', 'u', 'n', 'n', |
@@ -756,7 +756,7 @@ discard block |
||
756 | 756 | $sToken = ''; |
757 | 757 | $bSucces = false; |
758 | 758 | $bEndTag = false; |
759 | - for ($i = $pos,$iCount = strlen($body); $i < $iCount; ++$i) { |
|
759 | + for ($i = $pos, $iCount = strlen($body); $i < $iCount; ++$i) { |
|
760 | 760 | $char = $body[$i]; |
761 | 761 | |
762 | 762 | switch ($char) { |
@@ -358,7 +358,7 @@ |
||
358 | 358 | |
359 | 359 | if ($themeProps['primary-color']) { |
360 | 360 | if (!$themeProps['primary-color:hover']) { |
361 | - list(, , $l) = Colors::rgb2hsl(Colors::colorString2Object($themeProps['primary-color'])); |
|
361 | + list(,, $l) = Colors::rgb2hsl(Colors::colorString2Object($themeProps['primary-color'])); |
|
362 | 362 | if ($l > 20) { |
363 | 363 | $themeProps['primary-color:hover'] = Colors::darker($themeProps['primary-color'], 10); |
364 | 364 | } |
@@ -1074,7 +1074,7 @@ discard block |
||
1074 | 1074 | // Postfix display name of every contact folder with respective owner name |
1075 | 1075 | // it is mandatory to keep display-name different |
1076 | 1076 | $userStoreProps = mapi_getprops($openedUserStore, [PR_MAILBOX_OWNER_NAME]); |
1077 | - for ($i = 0,$len = count($userContactFolders); $i < $len; ++$i) { |
|
1077 | + for ($i = 0, $len = count($userContactFolders); $i < $len; ++$i) { |
|
1078 | 1078 | $userContactFolders[$i][PR_DISPLAY_NAME] = $userContactFolders[$i][PR_DISPLAY_NAME] . " - " . $userStoreProps[PR_MAILBOX_OWNER_NAME]; |
1079 | 1079 | } |
1080 | 1080 | |
@@ -1098,7 +1098,7 @@ discard block |
||
1098 | 1098 | |
1099 | 1099 | // Create the lists of store entryids, folder entryids and folder names to be added |
1100 | 1100 | // to the profile section |
1101 | - for ($i = 0,$len = count($contactFolders); $i < $len; ++$i) { |
|
1101 | + for ($i = 0, $len = count($contactFolders); $i < $len; ++$i) { |
|
1102 | 1102 | $contact_store_entryids[] = $contactFolders[$i][PR_STORE_ENTRYID]; |
1103 | 1103 | $contact_folder_entryids[] = $contactFolders[$i][PR_ENTRYID]; |
1104 | 1104 | $contact_folder_names[] = $contactFolders[$i][PR_DISPLAY_NAME]; |
@@ -26,17 +26,17 @@ |
||
26 | 26 | |
27 | 27 | // used by distribution lists |
28 | 28 | define("DL_GUID", pack("H*", "C091ADD3519DCF11A4A900AA0047FAA4")); |
29 | - define("DL_USER", 0xC3); // 195 |
|
30 | - define("DL_USER2", 0xD3); // 211 |
|
31 | - define("DL_USER3", 0xE3); // 227 |
|
29 | + define("DL_USER", 0xC3); // 195 |
|
30 | + define("DL_USER2", 0xD3); // 211 |
|
31 | + define("DL_USER3", 0xE3); // 227 |
|
32 | 32 | /* |
33 | 33 | * According to Exchange protocol, type property for oneoff contact |
34 | 34 | * will be 0x00. |
35 | 35 | */ |
36 | - define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | - define("DL_DIST", 0xB4); // 180 |
|
38 | - define("DL_USER_AB", 0xB5); // 181 |
|
39 | - define("DL_DIST_AB", 0xB6); // 182 |
|
36 | + define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | + define("DL_DIST", 0xB4); // 180 |
|
38 | + define("DL_USER_AB", 0xB5); // 181 |
|
39 | + define("DL_DIST_AB", 0xB6); // 182 |
|
40 | 40 | |
41 | 41 | // @FIXME these needs to be changed in mapitags.php |
42 | 42 |