@@ -284,7 +284,7 @@ |
||
| 284 | 284 | ob_start(); |
| 285 | 285 | echo(json_encode($result)); |
| 286 | 286 | $size = ob_get_length(); |
| 287 | - header('Content-Length: ' . $size); |
|
| 287 | + header('Content-Length: '.$size); |
|
| 288 | 288 | ob_end_flush(); |
| 289 | 289 | flush(); |
| 290 | 290 | } |
@@ -323,7 +323,7 @@ |
||
| 323 | 323 | return; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | - $tmpContact = $this->userId . ':' . $ident; |
|
| 326 | + $tmpContact = $this->userId.':'.$ident; |
|
| 327 | 327 | $result = MiscService::getContactData($tmpContact); |
| 328 | 328 | if (empty($result)) { |
| 329 | 329 | throw new NoUserException($this->l10n->t("This contact is not available")); |
@@ -146,7 +146,7 @@ |
||
| 146 | 146 | * @return string |
| 147 | 147 | */ |
| 148 | 148 | public function getUniqueId(): string { |
| 149 | - return $this->getAddressBookId() . '/' . $this->getCardUri(); |
|
| 149 | + return $this->getAddressBookId().'/'.$this->getCardUri(); |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | * @return string |
| 110 | 110 | */ |
| 111 | 111 | protected function stripPath($path) { |
| 112 | - $prefix = '/' . $this->userId . '/files'; |
|
| 112 | + $prefix = '/'.$this->userId.'/files'; |
|
| 113 | 113 | |
| 114 | 114 | return rtrim(substr($path, strlen($prefix)), '/'); |
| 115 | 115 | } |
@@ -121,11 +121,11 @@ |
||
| 121 | 121 | |
| 122 | 122 | private function leftJoinMountPoint(IQueryBuilder $qb, string $userId) { |
| 123 | 123 | $expr = $qb->expr(); |
| 124 | - $pf = '' . $this->default_select_alias . '.'; |
|
| 124 | + $pf = ''.$this->default_select_alias.'.'; |
|
| 125 | 125 | |
| 126 | 126 | $on = $expr->andX(); |
| 127 | 127 | $on->add($expr->eq('mp.user_id', $qb->createNamedParameter($userId))); |
| 128 | - $on->add($expr->eq('mp.share_id', $pf . 'id')); |
|
| 128 | + $on->add($expr->eq('mp.share_id', $pf.'id')); |
|
| 129 | 129 | |
| 130 | 130 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
| 131 | 131 | $qb->selectAlias('mp.mountPoint', 'gsshares_mountpoint') |
@@ -148,13 +148,13 @@ |
||
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | $info = pathinfo($share->getMountPoint()); |
| 151 | - $filename = $this->get('dirname', $info) . '/' . $this->get('filename', $info); |
|
| 151 | + $filename = $this->get('dirname', $info).'/'.$this->get('filename', $info); |
|
| 152 | 152 | $extension = $this->get('extension', $info); |
| 153 | - $extension = ($extension === '') ? '' : '.' . $extension; |
|
| 153 | + $extension = ($extension === '') ? '' : '.'.$extension; |
|
| 154 | 154 | |
| 155 | 155 | $n = 2; |
| 156 | 156 | while (true) { |
| 157 | - $path = $filename . " ($n)" . $extension; |
|
| 157 | + $path = $filename." ($n)".$extension; |
|
| 158 | 158 | try { |
| 159 | 159 | $fs->get($path); |
| 160 | 160 | } catch (NotFoundException $e) { |
@@ -119,9 +119,9 @@ discard block |
||
| 119 | 119 | $tCards = $tBooks = 0; |
| 120 | 120 | $knownBooks = []; |
| 121 | 121 | foreach ($users as $user) { |
| 122 | - $books = $this->cardDavBackend->getAddressBooksForUser('principals/users/' . $user->getUID()); |
|
| 122 | + $books = $this->cardDavBackend->getAddressBooksForUser('principals/users/'.$user->getUID()); |
|
| 123 | 123 | $output->writeln( |
| 124 | - '- User <info>' . $user->getUID() . '</info> have ' . sizeof($books) . ' address books:' |
|
| 124 | + '- User <info>'.$user->getUID().'</info> have '.sizeof($books).' address books:' |
|
| 125 | 125 | ); |
| 126 | 126 | |
| 127 | 127 | $tBooks += sizeof($books); |
@@ -137,11 +137,11 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | $shared = ''; |
| 139 | 139 | if ($owner !== $user->getUID()) { |
| 140 | - $shared = ' (shared by <info>' . $owner . '</info>)'; |
|
| 140 | + $shared = ' (shared by <info>'.$owner.'</info>)'; |
|
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | $output->writeln( |
| 144 | - ' <comment>*</comment> book #' . $bookId . $shared . ' contains ' |
|
| 144 | + ' <comment>*</comment> book #'.$bookId.$shared.' contains ' |
|
| 145 | 145 | . sizeof($cards) |
| 146 | 146 | . ' entries' |
| 147 | 147 | ); |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | $output->writeln(''); |
| 154 | - $output->writeln('with a total of ' . $tBooks . ' address books and ' . $tCards . ' contact entries'); |
|
| 154 | + $output->writeln('with a total of '.$tBooks.' address books and '.$tCards.' contact entries'); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | */ |
| 94 | 94 | private function listLinkedGroups(InputInterface $input, OutputInterface $output) { |
| 95 | 95 | if ($input->getOption('list') !== true) { |
| 96 | - return ; |
|
| 96 | + return; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | throw new FakeException(); |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | continue; |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - $level = (int) $row['role'] === 1 ? DeprecatedMember::LEVEL_OWNER : DeprecatedMember::LEVEL_MEMBER; |
|
| 151 | + $level = (int)$row['role'] === 1 ? DeprecatedMember::LEVEL_OWNER : DeprecatedMember::LEVEL_MEMBER; |
|
| 152 | 152 | |
| 153 | 153 | if ($level === DeprecatedMember::LEVEL_OWNER) { |
| 154 | 154 | if (isset($this->circleHasAdmin[$this->circlesById[$row['group_id']]])) { |