@@ -28,34 +28,34 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | class Item implements ExtendedCacheItemInterface |
| 30 | 30 | { |
| 31 | - use ItemBaseTrait { |
|
| 32 | - ItemBaseTrait::__construct as __BaseConstruct; |
|
| 33 | - } |
|
| 34 | - |
|
| 35 | - /** |
|
| 36 | - * Item constructor. |
|
| 37 | - * @param Driver $driver |
|
| 38 | - * @param $key |
|
| 39 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 40 | - */ |
|
| 41 | - public function __construct(DevfalseDriver $driver, $key) |
|
| 42 | - { |
|
| 43 | - $this->__BaseConstruct($driver, $key); |
|
| 44 | - } |
|
| 45 | - |
|
| 46 | - /** |
|
| 47 | - * @param ExtendedCacheItemPoolInterface $driver |
|
| 48 | - * @return static |
|
| 49 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 50 | - */ |
|
| 51 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 52 | - { |
|
| 53 | - if ($driver instanceof DevfalseDriver) { |
|
| 54 | - $this->driver = $driver; |
|
| 55 | - |
|
| 56 | - return $this; |
|
| 57 | - } |
|
| 58 | - |
|
| 59 | - throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 60 | - } |
|
| 31 | + use ItemBaseTrait { |
|
| 32 | + ItemBaseTrait::__construct as __BaseConstruct; |
|
| 33 | + } |
|
| 34 | + |
|
| 35 | + /** |
|
| 36 | + * Item constructor. |
|
| 37 | + * @param Driver $driver |
|
| 38 | + * @param $key |
|
| 39 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 40 | + */ |
|
| 41 | + public function __construct(DevfalseDriver $driver, $key) |
|
| 42 | + { |
|
| 43 | + $this->__BaseConstruct($driver, $key); |
|
| 44 | + } |
|
| 45 | + |
|
| 46 | + /** |
|
| 47 | + * @param ExtendedCacheItemPoolInterface $driver |
|
| 48 | + * @return static |
|
| 49 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 50 | + */ |
|
| 51 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 52 | + { |
|
| 53 | + if ($driver instanceof DevfalseDriver) { |
|
| 54 | + $this->driver = $driver; |
|
| 55 | + |
|
| 56 | + return $this; |
|
| 57 | + } |
|
| 58 | + |
|
| 59 | + throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 60 | + } |
|
| 61 | 61 | } |
| 62 | 62 | \ No newline at end of file |
@@ -38,8 +38,7 @@ discard block |
||
| 38 | 38 | * @param $key |
| 39 | 39 | * @throws PhpfastcacheInvalidArgumentException |
| 40 | 40 | */ |
| 41 | - public function __construct(DevfalseDriver $driver, $key) |
|
| 42 | - { |
|
| 41 | + public function __construct(DevfalseDriver $driver, $key) { |
|
| 43 | 42 | $this->__BaseConstruct($driver, $key); |
| 44 | 43 | } |
| 45 | 44 | |
@@ -48,8 +47,7 @@ discard block |
||
| 48 | 47 | * @return static |
| 49 | 48 | * @throws PhpfastcacheInvalidArgumentException |
| 50 | 49 | */ |
| 51 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 52 | - { |
|
| 50 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
| 53 | 51 | if ($driver instanceof DevfalseDriver) { |
| 54 | 52 | $this->driver = $driver; |
| 55 | 53 | |
@@ -31,96 +31,96 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | class Driver implements ExtendedCacheItemPoolInterface |
| 33 | 33 | { |
| 34 | - use DriverBaseTrait; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * @return bool |
|
| 38 | - */ |
|
| 39 | - public function driverCheck(): bool |
|
| 40 | - { |
|
| 41 | - return true; |
|
| 42 | - } |
|
| 43 | - |
|
| 44 | - /** |
|
| 45 | - * @return DriverStatistic |
|
| 46 | - */ |
|
| 47 | - public function getStats(): DriverStatistic |
|
| 48 | - { |
|
| 49 | - $stat = new DriverStatistic(); |
|
| 50 | - $stat->setInfo('[Devfalse] A void info string') |
|
| 51 | - ->setSize(0) |
|
| 52 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
| 53 | - ->setRawData(false); |
|
| 54 | - |
|
| 55 | - return $stat; |
|
| 56 | - } |
|
| 57 | - |
|
| 58 | - /** |
|
| 59 | - * @param CacheItemInterface $item |
|
| 60 | - * @return bool |
|
| 61 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 62 | - */ |
|
| 63 | - protected function driverWrite(CacheItemInterface $item): bool |
|
| 64 | - { |
|
| 65 | - /** |
|
| 66 | - * Check for Cross-Driver type confusion |
|
| 67 | - */ |
|
| 68 | - if ($item instanceof Item) { |
|
| 69 | - return true; |
|
| 70 | - } |
|
| 71 | - |
|
| 72 | - throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
|
| 73 | - } |
|
| 74 | - |
|
| 75 | - /** |
|
| 76 | - * @param CacheItemInterface $item |
|
| 77 | - * @return array |
|
| 78 | - */ |
|
| 79 | - protected function driverRead(CacheItemInterface $item): array |
|
| 80 | - { |
|
| 81 | - return [ |
|
| 82 | - self::DRIVER_DATA_WRAPPER_INDEX => false, |
|
| 83 | - self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
| 84 | - self::DRIVER_EDATE_WRAPPER_INDEX => new DateTime(), |
|
| 85 | - ]; |
|
| 86 | - } |
|
| 87 | - |
|
| 88 | - /** |
|
| 89 | - * @param CacheItemInterface $item |
|
| 90 | - * @return bool |
|
| 91 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 92 | - */ |
|
| 93 | - protected function driverDelete(CacheItemInterface $item): bool |
|
| 94 | - { |
|
| 95 | - /** |
|
| 96 | - * Check for Cross-Driver type confusion |
|
| 97 | - */ |
|
| 98 | - if ($item instanceof Item) { |
|
| 99 | - return true; |
|
| 100 | - } |
|
| 101 | - |
|
| 102 | - throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
|
| 103 | - } |
|
| 104 | - |
|
| 105 | - /** |
|
| 106 | - * @return bool |
|
| 107 | - */ |
|
| 108 | - protected function driverClear(): bool |
|
| 109 | - { |
|
| 110 | - return true; |
|
| 111 | - } |
|
| 112 | - |
|
| 113 | - /******************** |
|
| 34 | + use DriverBaseTrait; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * @return bool |
|
| 38 | + */ |
|
| 39 | + public function driverCheck(): bool |
|
| 40 | + { |
|
| 41 | + return true; |
|
| 42 | + } |
|
| 43 | + |
|
| 44 | + /** |
|
| 45 | + * @return DriverStatistic |
|
| 46 | + */ |
|
| 47 | + public function getStats(): DriverStatistic |
|
| 48 | + { |
|
| 49 | + $stat = new DriverStatistic(); |
|
| 50 | + $stat->setInfo('[Devfalse] A void info string') |
|
| 51 | + ->setSize(0) |
|
| 52 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
| 53 | + ->setRawData(false); |
|
| 54 | + |
|
| 55 | + return $stat; |
|
| 56 | + } |
|
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @param CacheItemInterface $item |
|
| 60 | + * @return bool |
|
| 61 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 62 | + */ |
|
| 63 | + protected function driverWrite(CacheItemInterface $item): bool |
|
| 64 | + { |
|
| 65 | + /** |
|
| 66 | + * Check for Cross-Driver type confusion |
|
| 67 | + */ |
|
| 68 | + if ($item instanceof Item) { |
|
| 69 | + return true; |
|
| 70 | + } |
|
| 71 | + |
|
| 72 | + throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
|
| 73 | + } |
|
| 74 | + |
|
| 75 | + /** |
|
| 76 | + * @param CacheItemInterface $item |
|
| 77 | + * @return array |
|
| 78 | + */ |
|
| 79 | + protected function driverRead(CacheItemInterface $item): array |
|
| 80 | + { |
|
| 81 | + return [ |
|
| 82 | + self::DRIVER_DATA_WRAPPER_INDEX => false, |
|
| 83 | + self::DRIVER_TAGS_WRAPPER_INDEX => [], |
|
| 84 | + self::DRIVER_EDATE_WRAPPER_INDEX => new DateTime(), |
|
| 85 | + ]; |
|
| 86 | + } |
|
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @param CacheItemInterface $item |
|
| 90 | + * @return bool |
|
| 91 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 92 | + */ |
|
| 93 | + protected function driverDelete(CacheItemInterface $item): bool |
|
| 94 | + { |
|
| 95 | + /** |
|
| 96 | + * Check for Cross-Driver type confusion |
|
| 97 | + */ |
|
| 98 | + if ($item instanceof Item) { |
|
| 99 | + return true; |
|
| 100 | + } |
|
| 101 | + |
|
| 102 | + throw new PhpfastcacheInvalidArgumentException('Cross-Driver type confusion detected'); |
|
| 103 | + } |
|
| 104 | + |
|
| 105 | + /** |
|
| 106 | + * @return bool |
|
| 107 | + */ |
|
| 108 | + protected function driverClear(): bool |
|
| 109 | + { |
|
| 110 | + return true; |
|
| 111 | + } |
|
| 112 | + |
|
| 113 | + /******************** |
|
| 114 | 114 | * |
| 115 | 115 | * PSR-6 Extended Methods |
| 116 | 116 | * |
| 117 | 117 | *******************/ |
| 118 | 118 | |
| 119 | - /** |
|
| 120 | - * @return bool |
|
| 121 | - */ |
|
| 122 | - protected function driverConnect(): bool |
|
| 123 | - { |
|
| 124 | - return true; |
|
| 125 | - } |
|
| 119 | + /** |
|
| 120 | + * @return bool |
|
| 121 | + */ |
|
| 122 | + protected function driverConnect(): bool |
|
| 123 | + { |
|
| 124 | + return true; |
|
| 125 | + } |
|
| 126 | 126 | } |
| 127 | 127 | \ No newline at end of file |
@@ -27,34 +27,34 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class Item implements ExtendedCacheItemInterface |
| 29 | 29 | { |
| 30 | - use ItemBaseTrait { |
|
| 31 | - ItemBaseTrait::__construct as __BaseConstruct; |
|
| 32 | - } |
|
| 33 | - |
|
| 34 | - /** |
|
| 35 | - * Item constructor. |
|
| 36 | - * @param Driver $driver |
|
| 37 | - * @param $key |
|
| 38 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 39 | - */ |
|
| 40 | - public function __construct(ApcuDriver $driver, $key) |
|
| 41 | - { |
|
| 42 | - $this->__BaseConstruct($driver, $key); |
|
| 43 | - } |
|
| 44 | - |
|
| 45 | - /** |
|
| 46 | - * @param ExtendedCacheItemPoolInterface $driver |
|
| 47 | - * @return static |
|
| 48 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 49 | - */ |
|
| 50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 51 | - { |
|
| 52 | - if ($driver instanceof ApcuDriver) { |
|
| 53 | - $this->driver = $driver; |
|
| 54 | - |
|
| 55 | - return $this; |
|
| 56 | - } |
|
| 57 | - |
|
| 58 | - throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 59 | - } |
|
| 30 | + use ItemBaseTrait { |
|
| 31 | + ItemBaseTrait::__construct as __BaseConstruct; |
|
| 32 | + } |
|
| 33 | + |
|
| 34 | + /** |
|
| 35 | + * Item constructor. |
|
| 36 | + * @param Driver $driver |
|
| 37 | + * @param $key |
|
| 38 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 39 | + */ |
|
| 40 | + public function __construct(ApcuDriver $driver, $key) |
|
| 41 | + { |
|
| 42 | + $this->__BaseConstruct($driver, $key); |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + /** |
|
| 46 | + * @param ExtendedCacheItemPoolInterface $driver |
|
| 47 | + * @return static |
|
| 48 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 49 | + */ |
|
| 50 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 51 | + { |
|
| 52 | + if ($driver instanceof ApcuDriver) { |
|
| 53 | + $this->driver = $driver; |
|
| 54 | + |
|
| 55 | + return $this; |
|
| 56 | + } |
|
| 57 | + |
|
| 58 | + throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 59 | + } |
|
| 60 | 60 | } |
| 61 | 61 | \ No newline at end of file |
@@ -37,8 +37,7 @@ discard block |
||
| 37 | 37 | * @param $key |
| 38 | 38 | * @throws PhpfastcacheInvalidArgumentException |
| 39 | 39 | */ |
| 40 | - public function __construct(ApcuDriver $driver, $key) |
|
| 41 | - { |
|
| 40 | + public function __construct(ApcuDriver $driver, $key) { |
|
| 42 | 41 | $this->__BaseConstruct($driver, $key); |
| 43 | 42 | } |
| 44 | 43 | |
@@ -47,8 +46,7 @@ discard block |
||
| 47 | 46 | * @return static |
| 48 | 47 | * @throws PhpfastcacheInvalidArgumentException |
| 49 | 48 | */ |
| 50 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 51 | - { |
|
| 49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
| 52 | 50 | if ($driver instanceof ApcuDriver) { |
| 53 | 51 | $this->driver = $driver; |
| 54 | 52 | |
@@ -26,34 +26,34 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | class Item implements ExtendedCacheItemInterface |
| 28 | 28 | { |
| 29 | - use ItemBaseTrait { |
|
| 30 | - ItemBaseTrait::__construct as __BaseConstruct; |
|
| 31 | - } |
|
| 32 | - |
|
| 33 | - /** |
|
| 34 | - * Item constructor. |
|
| 35 | - * @param Driver $driver |
|
| 36 | - * @param $key |
|
| 37 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 38 | - */ |
|
| 39 | - public function __construct(ZendSHMDriver $driver, $key) |
|
| 40 | - { |
|
| 41 | - $this->__BaseConstruct($driver, $key); |
|
| 42 | - } |
|
| 43 | - |
|
| 44 | - /** |
|
| 45 | - * @param ExtendedCacheItemPoolInterface $driver |
|
| 46 | - * @return static |
|
| 47 | - * @throws PhpfastcacheInvalidArgumentException |
|
| 48 | - */ |
|
| 49 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 50 | - { |
|
| 51 | - if ($driver instanceof ZendSHMDriver) { |
|
| 52 | - $this->driver = $driver; |
|
| 53 | - |
|
| 54 | - return $this; |
|
| 55 | - } |
|
| 56 | - |
|
| 57 | - throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 58 | - } |
|
| 29 | + use ItemBaseTrait { |
|
| 30 | + ItemBaseTrait::__construct as __BaseConstruct; |
|
| 31 | + } |
|
| 32 | + |
|
| 33 | + /** |
|
| 34 | + * Item constructor. |
|
| 35 | + * @param Driver $driver |
|
| 36 | + * @param $key |
|
| 37 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 38 | + */ |
|
| 39 | + public function __construct(ZendSHMDriver $driver, $key) |
|
| 40 | + { |
|
| 41 | + $this->__BaseConstruct($driver, $key); |
|
| 42 | + } |
|
| 43 | + |
|
| 44 | + /** |
|
| 45 | + * @param ExtendedCacheItemPoolInterface $driver |
|
| 46 | + * @return static |
|
| 47 | + * @throws PhpfastcacheInvalidArgumentException |
|
| 48 | + */ |
|
| 49 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 50 | + { |
|
| 51 | + if ($driver instanceof ZendSHMDriver) { |
|
| 52 | + $this->driver = $driver; |
|
| 53 | + |
|
| 54 | + return $this; |
|
| 55 | + } |
|
| 56 | + |
|
| 57 | + throw new PhpfastcacheInvalidArgumentException('Invalid driver instance'); |
|
| 58 | + } |
|
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |
@@ -36,8 +36,7 @@ discard block |
||
| 36 | 36 | * @param $key |
| 37 | 37 | * @throws PhpfastcacheInvalidArgumentException |
| 38 | 38 | */ |
| 39 | - public function __construct(ZendSHMDriver $driver, $key) |
|
| 40 | - { |
|
| 39 | + public function __construct(ZendSHMDriver $driver, $key) { |
|
| 41 | 40 | $this->__BaseConstruct($driver, $key); |
| 42 | 41 | } |
| 43 | 42 | |
@@ -46,8 +45,7 @@ discard block |
||
| 46 | 45 | * @return static |
| 47 | 46 | * @throws PhpfastcacheInvalidArgumentException |
| 48 | 47 | */ |
| 49 | - public function setDriver(ExtendedCacheItemPoolInterface $driver) |
|
| 50 | - { |
|
| 48 | + public function setDriver(ExtendedCacheItemPoolInterface $driver) { |
|
| 51 | 49 | if ($driver instanceof ZendSHMDriver) { |
| 52 | 50 | $this->driver = $driver; |
| 53 | 51 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | if ($stateFolder) { |
| 36 | 36 | $store = $GLOBALS["mapisession"]->getDefaultMessageStore(); |
| 37 | 37 | $username = $GLOBALS["mapisession"]->getUserName(); |
| 38 | - $hierarchyTable = mapi_folder_gethierarchytable($stateFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 38 | + $hierarchyTable = mapi_folder_gethierarchytable($stateFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 39 | 39 | $rows = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID, PR_DISPLAY_NAME]); |
| 40 | 40 | foreach ($rows as $row) { |
| 41 | 41 | $deviceStateFolder = mapi_msgstore_openentry($store, $row[PR_ENTRYID]); |
@@ -897,7 +897,7 @@ discard block |
||
| 897 | 897 | if (!$this->stateFolder) { |
| 898 | 898 | $store = $GLOBALS["mapisession"]->getDefaultMessageStore(); |
| 899 | 899 | $rootFolder = mapi_msgstore_openentry($store); |
| 900 | - $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 900 | + $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 901 | 901 | $restriction = $this->getStateFolderRestriction(PLUGIN_MDM_STORE_STATE_FOLDER); |
| 902 | 902 | mapi_table_restrict($hierarchy, $restriction); |
| 903 | 903 | if (mapi_table_getrowcount($hierarchy) == 1) { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $restrict, |
| 56 | 56 | [RES_CONTENT, |
| 57 | 57 | [ |
| 58 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 58 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 59 | 59 | ULPROPTAG => PR_SUBJECT, |
| 60 | 60 | VALUE => [PR_SUBJECT => $emailAddress], |
| 61 | 61 | ], |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | } |
| 455 | 455 | |
| 456 | 456 | if (!encryptionStoreExpirationSupport()) { |
| 457 | - withPHPSession(function () use ($encryptionStore) { |
|
| 457 | + withPHPSession(function() use ($encryptionStore) { |
|
| 458 | 458 | $encryptionStore->add('smime', ''); |
| 459 | 459 | }); |
| 460 | 460 | } |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | } |
| 679 | 679 | |
| 680 | 680 | // Save the signed message as attachment of the send email |
| 681 | - $stream = mapi_openproperty($signedAttach, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 681 | + $stream = mapi_openproperty($signedAttach, PR_ATTACH_DATA_BIN, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 682 | 682 | $handle = fopen($tmpSendSmimeEmail, 'r'); |
| 683 | 683 | while (!feof($handle)) { |
| 684 | 684 | $contents = fread($handle, BLOCK_SIZE); |
@@ -1003,7 +1003,7 @@ discard block |
||
| 1003 | 1003 | ]); |
| 1004 | 1004 | // Save attachment |
| 1005 | 1005 | $msgBody = base64_encode($cert); |
| 1006 | - $stream = mapi_openproperty($assocMessage, PR_BODY, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 1006 | + $stream = mapi_openproperty($assocMessage, PR_BODY, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 1007 | 1007 | mapi_stream_setsize($stream, strlen($msgBody)); |
| 1008 | 1008 | mapi_stream_write($stream, $msgBody); |
| 1009 | 1009 | mapi_stream_commit($stream); |
@@ -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 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
| 170 | 170 | } |
| 171 | 171 | else { |
| 172 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
| 172 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
| 173 | 173 | $encryptionStore->add('smime', $data['passphrase']); |
| 174 | 174 | }); |
| 175 | 175 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $privateCert = mapi_msgstore_openentry($this->store, $mapiCert[PR_ENTRYID]); |
| 266 | 266 | |
| 267 | 267 | $msgBody = base64_encode($cert); |
| 268 | - $stream = mapi_openproperty($privateCert, PR_BODY, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 268 | + $stream = mapi_openproperty($privateCert, PR_BODY, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 269 | 269 | mapi_stream_setsize($stream, strlen($msgBody)); |
| 270 | 270 | mapi_stream_write($stream, $msgBody); |
| 271 | 271 | mapi_stream_commit($stream); |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | $props[PR_EXCEPTION_ENDTIME] = $this->fromGMT($this->tz, $exception_props[$this->proptags["duedate"]]); |
| 740 | 740 | mapi_setprops($attachment, $props); |
| 741 | 741 | |
| 742 | - $imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY); |
|
| 742 | + $imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY); |
|
| 743 | 743 | |
| 744 | 744 | if ($copy_attach_from) { |
| 745 | 745 | $attachmentTable = mapi_message_getattachmenttable($copy_attach_from); |
@@ -1120,13 +1120,13 @@ discard block |
||
| 1120 | 1120 | // Remove all deleted recipients |
| 1121 | 1121 | if (isset($exception_recips['remove'])) { |
| 1122 | 1122 | foreach ($exception_recips['remove'] as &$recip) { |
| 1123 | - if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
| 1124 | - $recip[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
| 1123 | + if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
| 1124 | + $recip[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
| 1125 | 1125 | } |
| 1126 | 1126 | else { |
| 1127 | - $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
| 1127 | + $recip[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
| 1128 | 1128 | } |
| 1129 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1129 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
| 1130 | 1130 | } |
| 1131 | 1131 | unset($recip); |
| 1132 | 1132 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1195,13 +1195,13 @@ discard block |
||
| 1195 | 1195 | |
| 1196 | 1196 | // If recipient is not in list of deleted recipient, add him |
| 1197 | 1197 | if (!$foundInDeletedRecipients) { |
| 1198 | - if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
| 1199 | - $recipient[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
| 1198 | + if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
| 1199 | + $recipient[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
| 1200 | 1200 | } |
| 1201 | 1201 | else { |
| 1202 | - $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
| 1202 | + $recipient[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
| 1203 | 1203 | } |
| 1204 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1204 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
| 1205 | 1205 | $deletedRecipients[] = $recipient; |
| 1206 | 1206 | } |
| 1207 | 1207 | } |
@@ -1261,12 +1261,12 @@ discard block |
||
| 1261 | 1261 | $hasOrganizer = false; |
| 1262 | 1262 | // Check if meeting already has an organizer. |
| 1263 | 1263 | foreach ($recipients as $key => $recipient) { |
| 1264 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
| 1264 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
| 1265 | 1265 | $hasOrganizer = true; |
| 1266 | 1266 | } |
| 1267 | 1267 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
| 1268 | 1268 | // Recipients for an occurrence |
| 1269 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
| 1269 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
| 1270 | 1270 | } |
| 1271 | 1271 | } |
| 1272 | 1272 | |
@@ -1280,7 +1280,7 @@ discard block |
||
| 1280 | 1280 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
| 1281 | 1281 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
| 1282 | 1282 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
| 1283 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
| 1283 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
| 1284 | 1284 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
| 1285 | 1285 | |
| 1286 | 1286 | // Add organizer to recipients list. |