@@ -236,7 +236,7 @@ |
||
236 | 236 | self::STREAMER_VAR => "unapprovedinromapplist", |
237 | 237 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY, |
238 | 238 | self::STREAMER_ARRAY => SYNC_PROVISION_APPNAME, |
239 | - ], // TODO check |
|
239 | + ], // TODO check |
|
240 | 240 | SYNC_PROVISION_APPROVEDAPPLIST => [ |
241 | 241 | self::STREAMER_VAR => "approvedapplist", |
242 | 242 | self::STREAMER_PROP => self::STREAMER_TYPE_SEND_EMPTY, |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | $current['loopcount'] = 1; |
759 | 759 | // the MaxCount is the max number of messages exported before |
760 | 760 | $current['maxCount'] = $counter + (($maxItems < $queuedMessages) ? $maxItems : $queuedMessages); |
761 | - $loop = true; // loop mode!! |
|
761 | + $loop = true; // loop mode!! |
|
762 | 762 | } |
763 | 763 | } |
764 | 764 | elseif ($queuedMessages == 0) { |
@@ -778,7 +778,7 @@ discard block |
||
778 | 778 | $this->ignore_messageid = $current['potential']; |
779 | 779 | } |
780 | 780 | $current['maxCount'] = $counter + (($maxItems < $queuedMessages) ? $maxItems : $queuedMessages); |
781 | - $loop = true; // loop mode!! |
|
781 | + $loop = true; // loop mode!! |
|
782 | 782 | } |
783 | 783 | } |
784 | 784 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public const UNAUTHENTICATED = 1; |
12 | 12 | public const UNPROVISIONED = 2; |
13 | 13 | public const NOACTIVESYNCCOMMAND = 3; |
14 | - public const WEBSERVICECOMMAND = 4; // DEPRECATED |
|
14 | + public const WEBSERVICECOMMAND = 4; // DEPRECATED |
|
15 | 15 | public const HIERARCHYCOMMAND = 5; |
16 | 16 | public const PLAININPUT = 6; |
17 | 17 | public const REQUESTHANDLER = 7; |
@@ -34,8 +34,7 @@ |
||
34 | 34 | if (!isset(self::$loopCounter[$name])) { |
35 | 35 | self::$loopCounter[$name] = 0; |
36 | 36 | } |
37 | - else { |
|
38 | - ++self::$loopCounter[$name]; |
|
37 | + else {++self::$loopCounter[$name]; |
|
39 | 38 | } |
40 | 39 | |
41 | 40 | if (self::$loopCounter[$name] > self::MAXLOOP) { |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | class Request { |
11 | - public const MAXMEMORYUSAGE = 0.9; // use max. 90% of allowed memory when syncing |
|
11 | + public const MAXMEMORYUSAGE = 0.9; // use max. 90% of allowed memory when syncing |
|
12 | 12 | public const UNKNOWN = "unknown"; |
13 | 13 | public const IMPERSONATE_DELIM = '#'; |
14 | 14 | |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | else { |
199 | 199 | preg_replace_callback( |
200 | 200 | '/(\-?\d+)(.?)/', |
201 | - function ($m) { |
|
201 | + function($m) { |
|
202 | 202 | self::$memoryLimit = $m[1] * pow(1024, strpos('BKMG', $m[2])) * self::MAXMEMORYUSAGE; |
203 | 203 | }, |
204 | 204 | strtoupper($memoryLimit) |
@@ -1540,8 +1540,7 @@ |
||
1540 | 1540 | if (isset($exception->asbody)) { |
1541 | 1541 | $this->setASbody($exception->asbody, $exceptionprops, $appointmentprops); |
1542 | 1542 | $mapiexception["body"] = $exceptionprops[$appointmentprops["body"]] = |
1543 | - (isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : |
|
1544 | - ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : ""); |
|
1543 | + (isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : ""); |
|
1545 | 1544 | } |
1546 | 1545 | |
1547 | 1546 | array_push($recur["changed_occurrences"], $mapiexception); |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | return false; |
451 | 451 | } |
452 | 452 | if (null !== $this->apcuPrefix) { |
453 | - $file = apcu_fetch($this->apcuPrefix.$class, $hit); |
|
453 | + $file = apcu_fetch($this->apcuPrefix . $class, $hit); |
|
454 | 454 | if ($hit) { |
455 | 455 | return $file; |
456 | 456 | } |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | } |
465 | 465 | |
466 | 466 | if (null !== $this->apcuPrefix) { |
467 | - apcu_add($this->apcuPrefix.$class, $file); |
|
467 | + apcu_add($this->apcuPrefix . $class, $file); |
|
468 | 468 | } |
469 | 469 | |
470 | 470 | if (false === $file) { |
@@ -325,9 +325,9 @@ |
||
325 | 325 | foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { |
326 | 326 | if (isset(self::$installedByVendor[$vendorDir])) { |
327 | 327 | $installed[] = self::$installedByVendor[$vendorDir]; |
328 | - } elseif (is_file($vendorDir.'/composer/installed.php')) { |
|
329 | - $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; |
|
330 | - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { |
|
328 | + } elseif (is_file($vendorDir . '/composer/installed.php')) { |
|
329 | + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir . '/composer/installed.php'; |
|
330 | + if (null === self::$installed && strtr($vendorDir . '/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { |
|
331 | 331 | self::$installed = $installed[count($installed) - 1]; |
332 | 332 | } |
333 | 333 | } |
@@ -6,13 +6,13 @@ discard block |
||
6 | 6 | |
7 | 7 | class ComposerStaticInit153a56a781a72686b71399955d98204f |
8 | 8 | { |
9 | - public static $files = array ( |
|
9 | + public static $files = array( |
|
10 | 10 | '158e247719544c05f5e89c414f630c24' => __DIR__ . '/../..' . '/version.php', |
11 | 11 | 'f2969980cdf0dddd210ef5448430b9c0' => __DIR__ . '/../..' . '/lib/core/gsyncdefs.php', |
12 | 12 | 'd2a63a53b4a43a2bd71de0cec5c1abfb' => __DIR__ . '/../..' . '/lib/utils/compat.php', |
13 | 13 | ); |
14 | 14 | |
15 | - public static $classMap = array ( |
|
15 | + public static $classMap = array( |
|
16 | 16 | 'ASDevice' => __DIR__ . '/../..' . '/lib/core/asdevice.php', |
17 | 17 | 'AuthenticationRequiredException' => __DIR__ . '/../..' . '/lib/exceptions/authenticationrequiredexception.php', |
18 | 18 | 'BaseException' => '/usr/share/php-mapi/class.baseexception.php', |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | public static function getInitializer(ClassLoader $loader) |
165 | 165 | { |
166 | - return \Closure::bind(function () use ($loader) { |
|
166 | + return \Closure::bind(function() use ($loader) { |
|
167 | 167 | $loader->classMap = ComposerStaticInit153a56a781a72686b71399955d98204f::$classMap; |
168 | 168 | |
169 | 169 | }, null, ClassLoader::class); |