@@ -360,7 +360,7 @@ |
||
| 360 | 360 | ]; |
| 361 | 361 | $fileDependencies[$filename] = [ |
| 362 | 362 | 'depends' => [], |
| 363 | - 'core' => $core, // Based on tag or on class or on file path? |
|
| 363 | + 'core' => $core, // Based on tag or on class or on file path? |
|
| 364 | 364 | ]; |
| 365 | 365 | |
| 366 | 366 | for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) { |
@@ -195,8 +195,7 @@ |
||
| 195 | 195 | // TODO: move logon from MAPISession to here |
| 196 | 196 | |
| 197 | 197 | WebAppAuthentication::$_errorCode = isset($_SESSION['_keycloak_auth']) ? |
| 198 | - WebAppAuthentication::$_mapiSession->logon_token($username, $pass) : |
|
| 199 | - WebAppAuthentication::$_mapiSession->logon($username, $pass, DEFAULT_SERVER); |
|
| 198 | + WebAppAuthentication::$_mapiSession->logon_token($username, $pass) : WebAppAuthentication::$_mapiSession->logon($username, $pass, DEFAULT_SERVER); |
|
| 200 | 199 | |
| 201 | 200 | // Include external login plugins to be loaded |
| 202 | 201 | if (file_exists(BASE_PATH . 'extlogin.php')) { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | if ($data === CHANGE_PASSPHRASE_SUCCESS) { |
| 57 | 57 | // Reset cached passphrase. |
| 58 | 58 | $encryptionStore = EncryptionStore::getInstance(); |
| 59 | - withPHPSession(function () use ($encryptionStore) { |
|
| 59 | + withPHPSession(function() use ($encryptionStore) { |
|
| 60 | 60 | $encryptionStore->add('smime', ''); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
| 168 | 168 | } |
| 169 | 169 | else { |
| 170 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
| 170 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
| 171 | 171 | $encryptionStore->add('smime', $data['passphrase']); |
| 172 | 172 | }); |
| 173 | 173 | } |
@@ -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); |
@@ -851,7 +851,7 @@ |
||
| 851 | 851 | ], |
| 852 | 852 | [ |
| 853 | 853 | RES_OR, |
| 854 | - $tempRestrictions, // all group restrictions |
|
| 854 | + $tempRestrictions, // all group restrictions |
|
| 855 | 855 | ], |
| 856 | 856 | ], |
| 857 | 857 | ], |
@@ -507,12 +507,12 @@ |
||
| 507 | 507 | $data["search_meta"]["searchfolder_entryid"] = $entryid; |
| 508 | 508 | $data["search_meta"]["search_store_entryid"] = $action["store_entryid"]; |
| 509 | 509 | $data["search_meta"]["searchstate"] = $searchState; |
| 510 | - $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
| 510 | + $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
| 511 | 511 | |
| 512 | 512 | $data["page"] = []; |
| 513 | 513 | $data["page"]["start"] = 0; |
| 514 | 514 | $data["page"]["rowcount"] = $rowCount; |
| 515 | - $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
| 515 | + $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
| 516 | 516 | |
| 517 | 517 | if (!empty($listData)) { |
| 518 | 518 | $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; |
@@ -315,7 +315,7 @@ |
||
| 315 | 315 | throw new MAPIException(null, MAPI_E_NO_ACCESS); |
| 316 | 316 | } |
| 317 | 317 | |
| 318 | - $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function ($item) { |
|
| 318 | + $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function($item) { |
|
| 319 | 319 | return $item['props']['access'] === 0; |
| 320 | 320 | }); |
| 321 | 321 | if (count($noPermissionFolders) >= $folders) { |
@@ -1101,7 +1101,7 @@ discard block |
||
| 1101 | 1101 | // Postfix display name of every contact folder with respective owner name |
| 1102 | 1102 | // it is mandatory to keep display-name different |
| 1103 | 1103 | $userStoreProps = mapi_getprops($openedUserStore, [PR_MAILBOX_OWNER_NAME]); |
| 1104 | - for ($i = 0,$len = count($userContactFolders); $i < $len; ++$i) { |
|
| 1104 | + for ($i = 0, $len = count($userContactFolders); $i < $len; ++$i) { |
|
| 1105 | 1105 | $userContactFolders[$i][PR_DISPLAY_NAME] = $userContactFolders[$i][PR_DISPLAY_NAME] . " - " . $userStoreProps[PR_MAILBOX_OWNER_NAME]; |
| 1106 | 1106 | } |
| 1107 | 1107 | |
@@ -1125,7 +1125,7 @@ discard block |
||
| 1125 | 1125 | |
| 1126 | 1126 | // Create the lists of store entryids, folder entryids and folder names to be added |
| 1127 | 1127 | // to the profile section |
| 1128 | - for ($i = 0,$len = count($contactFolders); $i < $len; ++$i) { |
|
| 1128 | + for ($i = 0, $len = count($contactFolders); $i < $len; ++$i) { |
|
| 1129 | 1129 | $contact_store_entryids[] = $contactFolders[$i][PR_STORE_ENTRYID]; |
| 1130 | 1130 | $contact_folder_entryids[] = $contactFolders[$i][PR_ENTRYID]; |
| 1131 | 1131 | $contact_folder_names[] = $contactFolders[$i][PR_DISPLAY_NAME]; |