@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | * @param $fileName |
| 307 | 307 | * @param string $link |
| 308 | 308 | * @param string $author |
| 309 | - * @param $circleName |
|
| 309 | + * @param string $circleName |
|
| 310 | 310 | * @param string $email |
| 311 | 311 | * |
| 312 | 312 | * @throws Exception |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | * @param string $circleName |
| 344 | 344 | * @param string $email |
| 345 | 345 | * |
| 346 | - * @param $password |
|
| 346 | + * @param string $password |
|
| 347 | 347 | * |
| 348 | 348 | * @throws NotFoundException |
| 349 | 349 | * @throws Exception |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | * @param $subject |
| 425 | 425 | * @param $text |
| 426 | 426 | * @param $fileName |
| 427 | - * @param $link |
|
| 427 | + * @param string $link |
|
| 428 | 428 | * @param string $author |
| 429 | 429 | * @param string $circleName |
| 430 | 430 | * |
@@ -491,10 +491,10 @@ discard block |
||
| 491 | 491 | |
| 492 | 492 | |
| 493 | 493 | /** |
| 494 | - * @param $author |
|
| 494 | + * @param string $author |
|
| 495 | 495 | * @param string $email |
| 496 | 496 | * |
| 497 | - * @param $password |
|
| 497 | + * @param string $password |
|
| 498 | 498 | * |
| 499 | 499 | * @throws Exception |
| 500 | 500 | */ |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | |
| 589 | 589 | |
| 590 | 590 | /** |
| 591 | - * @param $author |
|
| 591 | + * @param string $author |
|
| 592 | 592 | * @param string $circleName |
| 593 | 593 | * |
| 594 | 594 | * @return IEMailTemplate |
@@ -631,8 +631,8 @@ discard block |
||
| 631 | 631 | |
| 632 | 632 | /** |
| 633 | 633 | * @param IEMailTemplate $emailTemplate |
| 634 | - * @param $author |
|
| 635 | - * @param $recipient |
|
| 634 | + * @param string $author |
|
| 635 | + * @param string $recipient |
|
| 636 | 636 | * |
| 637 | 637 | * @throws Exception |
| 638 | 638 | */ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->miscService = OC::$server->query(MiscService::class); |
| 121 | 121 | } catch (QueryException $e) { |
| 122 | 122 | \OC::$server->getLogger() |
| 123 | - ->log(1, 'Circles: cannot init FileSharingBroadcaster - ' . $e->getMessage()); |
|
| 123 | + ->log(1, 'Circles: cannot init FileSharingBroadcaster - '.$e->getMessage()); |
|
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * @throws IllegalIDChangeException |
| 255 | 255 | */ |
| 256 | 256 | private function generateShare($data) { |
| 257 | - $this->logger->log(0, 'Regenerate shares from payload: ' . json_encode($data)); |
|
| 257 | + $this->logger->log(0, 'Regenerate shares from payload: '.json_encode($data)); |
|
| 258 | 258 | |
| 259 | 259 | $share = new Share($this->rootFolder, $this->userManager); |
| 260 | 260 | $share->setId($data['id']); |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | ); |
| 298 | 298 | } catch (Exception $e) { |
| 299 | 299 | OC::$server->getLogger() |
| 300 | - ->log(1, 'Circles::sharedByMail - mail were not sent: ' . $e->getMessage()); |
|
| 300 | + ->log(1, 'Circles::sharedByMail - mail were not sent: '.$e->getMessage()); |
|
| 301 | 301 | } |
| 302 | 302 | } |
| 303 | 303 | |
@@ -315,8 +315,8 @@ discard block |
||
| 315 | 315 | $message = $this->mailer->createMessage(); |
| 316 | 316 | |
| 317 | 317 | $this->logger->log( |
| 318 | - 0, "Sending mail to circle '" . $circleName . "': " . $email . ' file: ' . $fileName |
|
| 319 | - . ' - link: ' . $link |
|
| 318 | + 0, "Sending mail to circle '".$circleName."': ".$email.' file: '.$fileName |
|
| 319 | + . ' - link: '.$link |
|
| 320 | 320 | ); |
| 321 | 321 | |
| 322 | 322 | $subject = $this->l10n->t('%s shared »%s« with you.', [$author, $fileName]); |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | |
| 356 | 356 | $message = $this->mailer->createMessage(); |
| 357 | 357 | |
| 358 | - $this->logger->log(0, "Sending password mail to circle '" . $circleName . "': " . $email); |
|
| 358 | + $this->logger->log(0, "Sending password mail to circle '".$circleName."': ".$email); |
|
| 359 | 359 | |
| 360 | 360 | $filename = $share->getNode() |
| 361 | 361 | ->getName(); |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
| 410 | 410 | if ($initiatorEmailAddress !== null) { |
| 411 | 411 | $message->setReplyTo([$initiatorEmailAddress => $initiatorDisplayName]); |
| 412 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 412 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
| 413 | 413 | } else { |
| 414 | 414 | $emailTemplate->addFooter(); |
| 415 | 415 | } |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | $emailTemplate->addHeader(); |
| 445 | 445 | $emailTemplate->addHeading($subject, false); |
| 446 | 446 | $emailTemplate->addBodyText( |
| 447 | - htmlspecialchars($text) . '<br>' . htmlspecialchars( |
|
| 447 | + htmlspecialchars($text).'<br>'.htmlspecialchars( |
|
| 448 | 448 | $this->l10n->t('Click the button below to open it.') |
| 449 | 449 | ), $text |
| 450 | 450 | ); |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $this->sendMailExistingShares($template, $author, $member->getUserId()); |
| 485 | 485 | $this->sendPasswordExistingShares($author, $member->getUserId(), $password); |
| 486 | 486 | } catch (Exception $e) { |
| 487 | - $this->logger->log(2, 'Failed to send mail about existing share ' . $e->getMessage()); |
|
| 487 | + $this->logger->log(2, 'Failed to send mail about existing share '.$e->getMessage()); |
|
| 488 | 488 | } |
| 489 | 489 | } |
| 490 | 490 | |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | $authorName = ($authorUser instanceof IUser) ? $authorUser->getDisplayName() : $author; |
| 509 | 509 | $authorEmail = ($authorUser instanceof IUser) ? $authorUser->getEMailAddress() : null; |
| 510 | 510 | |
| 511 | - $this->logger->log(0, "Sending password mail about existing files to '" . $email . "'"); |
|
| 511 | + $this->logger->log(0, "Sending password mail about existing files to '".$email."'"); |
|
| 512 | 512 | |
| 513 | 513 | $plainBodyPart = $this->l10n->t( |
| 514 | 514 | "%1\$s shared multiple files with you.\nYou should have already received a separate mail with a link to access them.\n", |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]); |
| 551 | 551 | if ($authorEmail !== null) { |
| 552 | 552 | $message->setReplyTo([$authorEmail => $authorName]); |
| 553 | - $emailTemplate->addFooter($instanceName . ' - ' . $this->defaults->getSlogan()); |
|
| 553 | + $emailTemplate->addFooter($instanceName.' - '.$this->defaults->getSlogan()); |
|
| 554 | 554 | } else { |
| 555 | 555 | $emailTemplate->addFooter(); |
| 556 | 556 | } |
@@ -595,7 +595,7 @@ discard block |
||
| 595 | 595 | */ |
| 596 | 596 | protected function generateMailExitingShares($author, $circleName) { |
| 597 | 597 | $this->logger->log( |
| 598 | - 0, "Generating mail about existing share mail from '" . $author . "' in " |
|
| 598 | + 0, "Generating mail about existing share mail from '".$author."' in " |
|
| 599 | 599 | . $circleName |
| 600 | 600 | ); |
| 601 | 601 | |
@@ -299,19 +299,19 @@ discard block |
||
| 299 | 299 | */ |
| 300 | 300 | private function createShare($share) { |
| 301 | 301 | $this->miscService->log( |
| 302 | - 'Creating share (1/4) - type: ' . $share->getShareType() . ' - token: ' |
|
| 303 | - . $share->getToken() . ' - type: ' . $share->getShareType() . ' - with: ' |
|
| 304 | - . $share->getSharedWith() . ' - permissions: ' . $share->getPermissions(), 0 |
|
| 302 | + 'Creating share (1/4) - type: '.$share->getShareType().' - token: ' |
|
| 303 | + . $share->getToken().' - type: '.$share->getShareType().' - with: ' |
|
| 304 | + . $share->getSharedWith().' - permissions: '.$share->getPermissions(), 0 |
|
| 305 | 305 | ); |
| 306 | 306 | |
| 307 | 307 | $qb = $this->getBaseInsertSql($share); |
| 308 | - $this->miscService->log('Share creation (2/4) : ' . json_encode($qb->getSQL()), 0); |
|
| 308 | + $this->miscService->log('Share creation (2/4) : '.json_encode($qb->getSQL()), 0); |
|
| 309 | 309 | |
| 310 | 310 | $result = $qb->execute(); |
| 311 | - $this->miscService->log('Share creation result (3/4) : ' . json_encode($result), 0); |
|
| 311 | + $this->miscService->log('Share creation result (3/4) : '.json_encode($result), 0); |
|
| 312 | 312 | |
| 313 | 313 | $id = $qb->getLastInsertId(); |
| 314 | - $this->miscService->log('Share created ID (4/4) : ' . $id, 0); |
|
| 314 | + $this->miscService->log('Share created ID (4/4) : '.$id, 0); |
|
| 315 | 315 | |
| 316 | 316 | try { |
| 317 | 317 | $share->setId($id); |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | public function getShareByToken($token) { |
| 537 | 537 | $qb = $this->dbConnection->getQueryBuilder(); |
| 538 | 538 | |
| 539 | - $this->miscService->log("Opening share by token '#" . $token . "'", 0); |
|
| 539 | + $this->miscService->log("Opening share by token '#".$token."'", 0); |
|
| 540 | 540 | |
| 541 | 541 | $cursor = $qb->select('*') |
| 542 | 542 | ->from('share') |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | try { |
| 561 | 561 | $data = $this->getShareByPersonalToken($token); |
| 562 | 562 | } catch (\Exception $e) { |
| 563 | - $this->miscService->log("Share '#" . $token . "' not found.", 0); |
|
| 563 | + $this->miscService->log("Share '#".$token."' not found.", 0); |
|
| 564 | 564 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
| 565 | 565 | } |
| 566 | 566 | } |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | $share = $this->createShareObject($data); |
| 570 | 570 | } catch (InvalidShare $e) { |
| 571 | 571 | $this->miscService->log( |
| 572 | - "Share Object '#" . $token . "' not created. " . json_encode($data), 0 |
|
| 572 | + "Share Object '#".$token."' not created. ".json_encode($data), 0 |
|
| 573 | 573 | ); |
| 574 | 574 | throw new ShareNotFound('Share not found', $this->l10n->t('Could not find share')); |
| 575 | 575 | } |