@@ -942,7 +942,7 @@ |
||
942 | 942 | 'fields' => $this->formFields, |
943 | 943 | 'formConfig' => $this->formConfig, |
944 | 944 | ], |
945 | - 'data' => [ // here we can specify the default values. |
|
945 | + 'data' => [// here we can specify the default values. |
|
946 | 946 | 'server_address' => 'files.demo.com', |
947 | 947 | 'server_port' => '80', |
948 | 948 | 'server_path' => '/remote.php/webdav', |
@@ -452,7 +452,7 @@ |
||
452 | 452 | 'fields' => $this->formFields, |
453 | 453 | 'formConfig' => $this->formConfig, |
454 | 454 | ], |
455 | - 'data' => [ // here we can specify the default values. |
|
455 | + 'data' => [// here we can specify the default values. |
|
456 | 456 | 'server_address' => $_SERVER['HTTP_HOST'], |
457 | 457 | 'server_ssl' => true, |
458 | 458 | 'server_port' => '443', |
@@ -446,7 +446,7 @@ |
||
446 | 446 | |
447 | 447 | public static function my_rsa_sha_encode($data, $key_id, $signagure_alg) { |
448 | 448 | $algos = [ |
449 | - 'sha1WithRSAEncryption' => ['alg' => 'sha1', 'oid' => '1.3.14.3.2.26'], |
|
449 | + 'sha1WithRSAEncryption' => ['alg' => 'sha1', 'oid' => '1.3.14.3.2.26'], |
|
450 | 450 | 'sha256WithRSAEncryption' => ['alg' => 'sha256', 'oid' => '2.16.840.1.101.3.4.2.1'], |
451 | 451 | 'sha384WithRSAEncryption' => ['alg' => 'sha384', 'oid' => '2.16.840.1.101.3.4.2.2'], |
452 | 452 | 'sha512WithRSAEncryption' => ['alg' => 'sha512', 'oid' => '2.16.840.1.101.3.4.2.3'], |
@@ -190,7 +190,7 @@ |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function name($tag = null) { |
193 | - $this->beginsequence($tag); # seq of RDN |
|
193 | + $this->beginsequence($tag); # seq of RDN |
|
194 | 194 | $res = []; |
195 | 195 | while ($this->in()) { |
196 | 196 | $parts = []; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | if (CHANGE_PASSPHRASE_SUCCESS === $data) { |
59 | 59 | // Reset cached passphrase. |
60 | 60 | $encryptionStore = EncryptionStore::getInstance(); |
61 | - withPHPSession(function () use ($encryptionStore) { |
|
61 | + withPHPSession(function() use ($encryptionStore) { |
|
62 | 62 | $encryptionStore->add('smime', ''); |
63 | 63 | }); |
64 | 64 | } |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | if (encryptionStoreExpirationSupport()) { |
169 | 169 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
170 | 170 | } else { |
171 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
171 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
172 | 172 | $encryptionStore->add('smime', $data['passphrase']); |
173 | 173 | }); |
174 | 174 | } |
@@ -452,7 +452,7 @@ |
||
452 | 452 | } |
453 | 453 | |
454 | 454 | if (!encryptionStoreExpirationSupport()) { |
455 | - withPHPSession(function () use ($encryptionStore) { |
|
455 | + withPHPSession(function() use ($encryptionStore) { |
|
456 | 456 | $encryptionStore->add('smime', ''); |
457 | 457 | }); |
458 | 458 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @return bool true on success or false on failure |
108 | 108 | */ |
109 | 109 | public function save($store, $parententryid, $entryid, $action) { |
110 | - $properiesToDelete = []; // create an array of properties which should be deleted |
|
110 | + $properiesToDelete = []; // create an array of properties which should be deleted |
|
111 | 111 | // this array is passed to $GLOBALS['operations']->saveMessage() function |
112 | 112 | |
113 | 113 | if (!$store && !$parententryid) { |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | |
440 | 440 | // UTC time |
441 | 441 | $startDateUTC = $actionProps[$type]; |
442 | - $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
442 | + $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
443 | 443 | |
444 | 444 | // get local time from UTC time |
445 | 445 | $recur = new Recurrence($store, []); |
@@ -122,8 +122,8 @@ |
||
122 | 122 | if (!empty($action['query']) && !empty($recipient_history) && !empty($recipient_history['recipients'])) { |
123 | 123 | // Setup result array with match levels |
124 | 124 | $l_aResult = [ |
125 | - 0 => [], // Matches on whole string |
|
126 | - 1 => [], // Matches on part of string |
|
125 | + 0 => [], // Matches on whole string |
|
126 | + 1 => [], // Matches on part of string |
|
127 | 127 | ]; |
128 | 128 | |
129 | 129 | // Loop through all the recipients |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $abHierarchyRows = mapi_table_queryallrows($hierarchyTable, [PR_AB_PROVIDER_ID, PR_ENTRYID]); |
236 | 236 | |
237 | 237 | // Look for the 'Contacts Folders' |
238 | - for ($i = 0,$len = count($abHierarchyRows); $i < $len; ++$i) { |
|
238 | + for ($i = 0, $len = count($abHierarchyRows); $i < $len; ++$i) { |
|
239 | 239 | // Check if the folder matches the Contact Provider GUID |
240 | 240 | if (MUIDZCSAB == $abHierarchyRows[$i][PR_AB_PROVIDER_ID]) { |
241 | 241 | $abContactContainerEntryid = $abHierarchyRows[$i][PR_ENTRYID]; |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $abContactContainerHierarchyRows = mapi_table_queryallrows($abContactContainerHierarchyTable, [PR_DISPLAY_NAME, PR_OBJECT_TYPE, PR_ENTRYID]); |
253 | 253 | |
254 | 254 | // Loop through all the contact folders found under the 'Contacts Folders' hierarchy |
255 | - for ($j = 0,$len = count($abContactContainerHierarchyRows); $j < $len; ++$j) { |
|
255 | + for ($j = 0, $len = count($abContactContainerHierarchyRows); $j < $len; ++$j) { |
|
256 | 256 | // Open, get contents table, restrict, sort and then merge the result in the list of $rows |
257 | 257 | $abContactFolder = mapi_ab_openentry($ab, $abContactContainerHierarchyRows[$j][PR_ENTRYID]); |
258 | 258 | $abContactFolderTable = mapi_folder_getcontentstable($abContactFolder, MAPI_DEFERRED_ERRORS); |