@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $offset = (int) $arguments['offset']; |
| 87 | 87 | $stopAt = (int) $arguments['stopAt']; |
| 88 | 88 | |
| 89 | - $this->logger->info('Building calendar reminder index (' . $offset .'/' . $stopAt . ')'); |
|
| 89 | + $this->logger->info('Building calendar reminder index ('.$offset.'/'.$stopAt.')'); |
|
| 90 | 90 | |
| 91 | 91 | $offset = $this->buildIndex($offset, $stopAt); |
| 92 | 92 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'offset' => $offset, |
| 98 | 98 | 'stopAt' => $stopAt |
| 99 | 99 | ]); |
| 100 | - $this->logger->info('Scheduled a new BuildReminderIndexBackgroundJob with offset ' . $offset); |
|
| 100 | + $this->logger->info('Scheduled a new BuildReminderIndexBackgroundJob with offset '.$offset); |
|
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <div class="update"> |
| 2 | - <p class="message"><?php p($l->t('There was an error updating your attendance status.'));?></p> |
|
| 3 | - <p class="message"><?php p($l->t('Please contact the organizer directly.'));?></p> |
|
| 2 | + <p class="message"><?php p($l->t('There was an error updating your attendance status.')); ?></p> |
|
| 3 | + <p class="message"><?php p($l->t('Please contact the organizer directly.')); ?></p> |
|
| 4 | 4 | <?php if (isset($_['organizer'])): ?> |
| 5 | 5 | <p class="message"><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p> |
| 6 | 6 | <?php endif; ?> |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | require '../../../../3rdparty/autoload.php'; |
| 24 | 24 | |
| 25 | 25 | if ($argc !== 6) { |
| 26 | - echo "Invalid number of arguments" . PHP_EOL; |
|
| 26 | + echo "Invalid number of arguments".PHP_EOL; |
|
| 27 | 27 | exit; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | $t0 = microtime(true); |
| 38 | 38 | $result = $client->request($method, $uploadUrl, $data, $headers); |
| 39 | 39 | $t1 = microtime(true); |
| 40 | - echo $result['statusCode'] . " - " . ($t1 - $t0) . ' seconds' . PHP_EOL; |
|
| 41 | - if (!in_array($result['statusCode'], [200, 201])) { |
|
| 42 | - echo $result['body'] . PHP_EOL; |
|
| 40 | + echo $result['statusCode']." - ".($t1 - $t0).' seconds'.PHP_EOL; |
|
| 41 | + if (!in_array($result['statusCode'], [200, 201])) { |
|
| 42 | + echo $result['body'].PHP_EOL; |
|
| 43 | 43 | } |
| 44 | 44 | return $result; |
| 45 | 45 | } |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | private function evaluateScopeId(string $scopeId = null): string { |
| 51 | 51 | if ($this->scope === IManager::SCOPE_USER |
| 52 | - && trim((string)$scopeId) === '') { |
|
| 52 | + && trim((string) $scopeId) === '') { |
|
| 53 | 53 | throw new \InvalidArgumentException('user scope requires a user id'); |
| 54 | 54 | } |
| 55 | - return trim((string)$scopeId); |
|
| 55 | + return trim((string) $scopeId); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | |
| 72 | 72 | public function getHash(): string { |
| 73 | 73 | if ($this->hash === null) { |
| 74 | - $this->hash = \hash('sha256', $this->getScope() . '::' . $this->getScopeId()); |
|
| 74 | + $this->hash = \hash('sha256', $this->getScope().'::'.$this->getScopeId()); |
|
| 75 | 75 | } |
| 76 | 76 | return $this->hash; |
| 77 | 77 | } |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | while (!empty($parents)) { |
| 112 | 112 | $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder(); |
| 113 | 113 | |
| 114 | - $parents = array_map(function ($parent) use ($qb) { |
|
| 114 | + $parents = array_map(function($parent) use ($qb) { |
|
| 115 | 115 | return $qb->createNamedParameter($parent); |
| 116 | 116 | }, $parents); |
| 117 | 117 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | $userFolder = $this->rootFolder->getUserFolder($user->getUID()); |
| 62 | 62 | /** @var Node[] $nodes */ |
| 63 | - $nodes = $userFolder->getById((int)$context['itemId']); |
|
| 63 | + $nodes = $userFolder->getById((int) $context['itemId']); |
|
| 64 | 64 | if (count($nodes) === 0) { |
| 65 | 65 | return; |
| 66 | 66 | } |
@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | // at least on PHP 5.6 usort turned out to be not stable. So we add |
| 75 | 75 | // the current index to the value and compare it on a draw |
| 76 | 76 | $i = 0; |
| 77 | - $workArray = array_map(function ($element) use (&$i) { |
|
| 77 | + $workArray = array_map(function($element) use (&$i) { |
|
| 78 | 78 | return [$i++, $element]; |
| 79 | 79 | }, $byType); |
| 80 | 80 | |
| 81 | - usort($workArray, function ($a, $b) use ($al, $type) { |
|
| 81 | + usort($workArray, function($a, $b) use ($al, $type) { |
|
| 82 | 82 | $result = $this->compare($a[1], $b[1], $al[$type]); |
| 83 | 83 | if ($result === 0) { |
| 84 | 84 | $result = $a[0] - $b[0]; |
@@ -101,8 +101,8 @@ discard block |
||
| 101 | 101 | $a = $a['value']['shareWith']; |
| 102 | 102 | $b = $b['value']['shareWith']; |
| 103 | 103 | |
| 104 | - $valueA = (int)in_array($a, $al, true); |
|
| 105 | - $valueB = (int)in_array($b, $al, true); |
|
| 104 | + $valueA = (int) in_array($a, $al, true); |
|
| 105 | + $valueB = (int) in_array($b, $al, true); |
|
| 106 | 106 | |
| 107 | 107 | return $valueB - $valueA; |
| 108 | 108 | } |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | $client = $this->httpClientService->newClient(); |
| 232 | 232 | try { |
| 233 | 233 | $result = $client->get( |
| 234 | - $url . '/status.php', |
|
| 234 | + $url.'/status.php', |
|
| 235 | 235 | [ |
| 236 | 236 | 'timeout' => 3, |
| 237 | 237 | 'connect_timeout' => 3, |
@@ -284,6 +284,6 @@ discard block |
||
| 284 | 284 | return $url; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | - return 'https://' . $url; |
|
| 287 | + return 'https://'.$url; |
|
| 288 | 288 | } |
| 289 | 289 | } |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | <ul id="listOfTrustedServers"> |
| 21 | 21 | <?php foreach ($_['trustedServers'] as $trustedServer) { ?> |
| 22 | 22 | <li id="<?php p($trustedServer['id']); ?>"> |
| 23 | - <?php if ((int)$trustedServer['status'] === TrustedServers::STATUS_OK) { ?> |
|
| 23 | + <?php if ((int) $trustedServer['status'] === TrustedServers::STATUS_OK) { ?> |
|
| 24 | 24 | <span class="status success"></span> |
| 25 | 25 | <?php |
| 26 | 26 | } elseif ( |
| 27 | - (int)$trustedServer['status'] === TrustedServers::STATUS_PENDING || |
|
| 28 | - (int)$trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED |
|
| 27 | + (int) $trustedServer['status'] === TrustedServers::STATUS_PENDING || |
|
| 28 | + (int) $trustedServer['status'] === TrustedServers::STATUS_ACCESS_REVOKED |
|
| 29 | 29 | ) { ?> |
| 30 | 30 | <span class="status indeterminate"></span> |
| 31 | 31 | <?php } else {?> |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $this |
| 39 | 39 | ->setIdentifier($invalidId) |
| 40 | 40 | ->setScheme(self::SCHEME_NULL) |
| 41 | - ->setText('Unknown auth mechanism backend ' . $invalidId) |
|
| 41 | + ->setText('Unknown auth mechanism backend '.$invalidId) |
|
| 42 | 42 | ; |
| 43 | 43 | } |
| 44 | 44 | } |