@@ -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', |
@@ -420,8 +420,8 @@ |
||
| 420 | 420 | |
| 421 | 421 | private function certificateAsPem($cert) { |
| 422 | 422 | return "-----BEGIN CERTIFICATE-----\n" |
| 423 | - . chunk_split(base64_encode($cert['certificate_der'])) |
|
| 424 | - . '-----END CERTIFICATE-----'; |
|
| 423 | + . chunk_split(base64_encode($cert['certificate_der'])) |
|
| 424 | + . '-----END CERTIFICATE-----'; |
|
| 425 | 425 | } |
| 426 | 426 | } |
| 427 | 427 | |
@@ -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 | } |
@@ -34,14 +34,14 @@ |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | switch ($this->status) { |
| 37 | - case 'good': |
|
| 38 | - return OCSP_CERT_STATUS_GOOD; |
|
| 37 | + case 'good': |
|
| 38 | + return OCSP_CERT_STATUS_GOOD; |
|
| 39 | 39 | |
| 40 | - case 'revoked': |
|
| 41 | - return OCSP_CERT_STATUS_REVOKED; |
|
| 40 | + case 'revoked': |
|
| 41 | + return OCSP_CERT_STATUS_REVOKED; |
|
| 42 | 42 | |
| 43 | - default: |
|
| 44 | - return OCSP_CERT_STATUS_UNKOWN; |
|
| 43 | + default: |
|
| 44 | + return OCSP_CERT_STATUS_UNKOWN; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -215,18 +215,18 @@ discard block |
||
| 215 | 215 | $errorInfo = []; |
| 216 | 216 | |
| 217 | 217 | switch (mapi_last_hresult()) { |
| 218 | - case MAPI_E_NO_ACCESS: |
|
| 219 | - $errorInfo['error_message'] = _('Unable to perform search query, no permissions to create search folder.'); |
|
| 218 | + case MAPI_E_NO_ACCESS: |
|
| 219 | + $errorInfo['error_message'] = _('Unable to perform search query, no permissions to create search folder.'); |
|
| 220 | 220 | |
| 221 | - break; |
|
| 221 | + break; |
|
| 222 | 222 | |
| 223 | - case MAPI_E_NOT_FOUND: |
|
| 224 | - $errorInfo['error_message'] = _('Unable to perform search query, search folder not found.'); |
|
| 223 | + case MAPI_E_NOT_FOUND: |
|
| 224 | + $errorInfo['error_message'] = _('Unable to perform search query, search folder not found.'); |
|
| 225 | 225 | |
| 226 | - break; |
|
| 226 | + break; |
|
| 227 | 227 | |
| 228 | - default: |
|
| 229 | - $errorInfo['error_message'] = _('Unable to perform search query, store might not support searching.'); |
|
| 228 | + default: |
|
| 229 | + $errorInfo['error_message'] = _('Unable to perform search query, store might not support searching.'); |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | $errorInfo['original_error_message'] = _('Error in creating search folder.'); |
@@ -381,45 +381,45 @@ discard block |
||
| 381 | 381 | $subres = $restriction[1]; |
| 382 | 382 | |
| 383 | 383 | switch ($subres[ULPROPTAG]) { |
| 384 | - case PR_SUBJECT: |
|
| 385 | - $patterns['subject'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 384 | + case PR_SUBJECT: |
|
| 385 | + $patterns['subject'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 386 | 386 | |
| 387 | - break; |
|
| 387 | + break; |
|
| 388 | 388 | |
| 389 | - case PR_BODY: |
|
| 390 | - $patterns['content'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 391 | - $patterns['attachments'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 389 | + case PR_BODY: |
|
| 390 | + $patterns['content'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 391 | + $patterns['attachments'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 392 | 392 | |
| 393 | - break; |
|
| 393 | + break; |
|
| 394 | 394 | |
| 395 | - case PR_SENDER_NAME: |
|
| 396 | - $patterns['sender'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 395 | + case PR_SENDER_NAME: |
|
| 396 | + $patterns['sender'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 397 | 397 | |
| 398 | - break; |
|
| 398 | + break; |
|
| 399 | 399 | |
| 400 | - case PR_SENT_REPRESENTING_NAME: |
|
| 401 | - $patterns['from'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 400 | + case PR_SENT_REPRESENTING_NAME: |
|
| 401 | + $patterns['from'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 402 | 402 | |
| 403 | - break; |
|
| 403 | + break; |
|
| 404 | 404 | |
| 405 | - case PR_DISPLAY_TO: |
|
| 406 | - case PR_DISPLAY_CC: |
|
| 407 | - $patterns['recipients'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 405 | + case PR_DISPLAY_TO: |
|
| 406 | + case PR_DISPLAY_CC: |
|
| 407 | + $patterns['recipients'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 408 | 408 | |
| 409 | - break; |
|
| 409 | + break; |
|
| 410 | 410 | |
| 411 | - case PR_MESSAGE_CLASS: |
|
| 412 | - if (empty($patterns['message_classes'])) { |
|
| 413 | - $patterns['message_classes'] = []; |
|
| 414 | - } |
|
| 415 | - $patterns['message_classes'][] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 411 | + case PR_MESSAGE_CLASS: |
|
| 412 | + if (empty($patterns['message_classes'])) { |
|
| 413 | + $patterns['message_classes'] = []; |
|
| 414 | + } |
|
| 415 | + $patterns['message_classes'][] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 416 | 416 | |
| 417 | - break; |
|
| 417 | + break; |
|
| 418 | 418 | |
| 419 | - case PR_DISPLAY_NAME: |
|
| 420 | - $patterns['others'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 419 | + case PR_DISPLAY_NAME: |
|
| 420 | + $patterns['others'] = $subres[VALUE][$subres[ULPROPTAG]]; |
|
| 421 | 421 | |
| 422 | - break; |
|
| 422 | + break; |
|
| 423 | 423 | } |
| 424 | 424 | } elseif (RES_AND == $type || RES_OR == $type) { |
| 425 | 425 | foreach ($restriction[1] as $subres) { |
@@ -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, []); |