@@ -148,7 +148,7 @@ |
||
148 | 148 | continue; |
149 | 149 | } |
150 | 150 | |
151 | - $level = (int) $row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER; |
|
151 | + $level = (int)$row['role'] === 1 ? Member::LEVEL_OWNER : Member::LEVEL_MEMBER; |
|
152 | 152 | |
153 | 153 | if ($level === Member::LEVEL_OWNER) { |
154 | 154 | if (isset($this->circleHasAdmin[$this->circlesById[$row['group_id']]])) { |
@@ -88,7 +88,7 @@ |
||
88 | 88 | $searcher = \OC::$server->query((string)$container); |
89 | 89 | |
90 | 90 | if (!($searcher instanceof ISearch)) { |
91 | - $this->miscService->log('Search ' . $container . ' is not compatible exception'); |
|
91 | + $this->miscService->log('Search '.$container.' is not compatible exception'); |
|
92 | 92 | continue; |
93 | 93 | } |
94 | 94 |
@@ -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 | } |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * @return string |
92 | 92 | */ |
93 | 93 | private function generateTestAsyncURL($remote) { |
94 | - return $this->configService->generateRemoteHost($remote) . Application::TEST_URL_ASYNC; |
|
94 | + return $this->configService->generateRemoteHost($remote).Application::TEST_URL_ASYNC; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 |
@@ -217,7 +217,7 @@ |
||
217 | 217 | * @return string |
218 | 218 | */ |
219 | 219 | public function generateLinkRemoteURL($remote) { |
220 | - return $this->configService->generateRemoteHost($remote) . self::REMOTE_URL_LINK; |
|
220 | + return $this->configService->generateRemoteHost($remote).self::REMOTE_URL_LINK; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 |
@@ -265,7 +265,7 @@ |
||
265 | 265 | * @return DataResponse |
266 | 266 | */ |
267 | 267 | private function federatedFail($reason) { |
268 | - $this->miscService->log(0, 'federated fail: ' . $reason); |
|
268 | + $this->miscService->log(0, 'federated fail: '.$reason); |
|
269 | 269 | |
270 | 270 | return new DataResponse( |
271 | 271 | [ |
@@ -344,7 +344,7 @@ |
||
344 | 344 | ); |
345 | 345 | } |
346 | 346 | |
347 | - $tmpContact = $this->userId . ':' . $ident; |
|
347 | + $tmpContact = $this->userId.':'.$ident; |
|
348 | 348 | $result = MiscService::getContactData($tmpContact); |
349 | 349 | if (empty($result)) { |
350 | 350 | throw new NoUserException($this->l10n->t("This contact is not available")); |
@@ -300,19 +300,19 @@ discard block |
||
300 | 300 | */ |
301 | 301 | private function createShare($share) { |
302 | 302 | $this->miscService->log( |
303 | - 'Creating share (1/4) - type: ' . $share->getShareType() . ' - token: ' |
|
304 | - . $share->getToken() . ' - type: ' . $share->getShareType() . ' - with: ' |
|
305 | - . $share->getSharedWith() . ' - permissions: ' . $share->getPermissions(), 0 |
|
303 | + 'Creating share (1/4) - type: '.$share->getShareType().' - token: ' |
|
304 | + . $share->getToken().' - type: '.$share->getShareType().' - with: ' |
|
305 | + . $share->getSharedWith().' - permissions: '.$share->getPermissions(), 0 |
|
306 | 306 | ); |
307 | 307 | |
308 | 308 | $qb = $this->getBaseInsertSql($share); |
309 | - $this->miscService->log('Share creation (2/4) : ' . json_encode($qb->getSQL()), 0); |
|
309 | + $this->miscService->log('Share creation (2/4) : '.json_encode($qb->getSQL()), 0); |
|
310 | 310 | |
311 | 311 | $result = $qb->execute(); |
312 | - $this->miscService->log('Share creation result (3/4) : ' . json_encode($result), 0); |
|
312 | + $this->miscService->log('Share creation result (3/4) : '.json_encode($result), 0); |
|
313 | 313 | |
314 | 314 | $id = $qb->getLastInsertId(); |
315 | - $this->miscService->log('Share created ID (4/4) : ' . $id, 0); |
|
315 | + $this->miscService->log('Share created ID (4/4) : '.$id, 0); |
|
316 | 316 | |
317 | 317 | try { |
318 | 318 | $share->setId($id); |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | public function getShareByToken($token) { |
538 | 538 | $qb = $this->dbConnection->getQueryBuilder(); |
539 | 539 | |
540 | - $this->miscService->log("Opening share by token '#" . $token . "'", 0); |
|
540 | + $this->miscService->log("Opening share by token '#".$token."'", 0); |
|
541 | 541 | |
542 | 542 | $cursor = $qb->select('*') |
543 | 543 | ->from('share') |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | try { |
562 | 562 | $data = $this->getShareByPersonalToken($token); |
563 | 563 | } catch (Exception $e) { |
564 | - $this->miscService->log("Share '#" . $token . "' not found.", 0); |
|
564 | + $this->miscService->log("Share '#".$token."' not found.", 0); |
|
565 | 565 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
566 | 566 | } |
567 | 567 | } |
@@ -570,7 +570,7 @@ discard block |
||
570 | 570 | $share = $this->createShareObject($data); |
571 | 571 | } catch (InvalidShare $e) { |
572 | 572 | $this->miscService->log( |
573 | - "Share Object '#" . $token . "' not created. " . json_encode($data), 0 |
|
573 | + "Share Object '#".$token."' not created. ".json_encode($data), 0 |
|
574 | 574 | ); |
575 | 575 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
576 | 576 | } |
@@ -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 |