Completed
Pull Request — master (#341)
by Julius
01:46
created
lib/Model/Circle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 
147 147
 	/**
148 148
 	 * @param array $arr
149
-	 * @param $key
149
+	 * @param string $key
150 150
 	 * @param int $type
151 151
 	 *
152 152
 	 * @return null|Member
Please login to merge, or discard this patch.
lib/Api/v1/Circles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 	 */
454 454
 	public static function generateLink($circleUniqueId) {
455 455
 		return \OC::$server->getURLGenerator()
456
-						   ->linkToRoute('circles.Navigation.navigate') . '#' . $circleUniqueId;
456
+						   ->linkToRoute('circles.Navigation.navigate').'#'.$circleUniqueId;
457 457
 	}
458 458
 
459 459
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 	 */
469 469
 	public static function generateAbsoluteLink($circleUniqueId) {
470 470
 		return \OC::$server->getURLGenerator()
471
-						   ->linkToRouteAbsolute('circles.Navigation.navigate') . '#' . $circleUniqueId;
471
+						   ->linkToRouteAbsolute('circles.Navigation.navigate').'#'.$circleUniqueId;
472 472
 	}
473 473
 
474 474
 
@@ -483,8 +483,8 @@  discard block
 block discarded – undo
483 483
 	 */
484 484
 	public static function generateRemoteLink(FederatedLink $link) {
485 485
 		return \OC::$server->getURLGenerator()
486
-						   ->linkToRoute('circles.Navigation.navigate') . '#' . $link->getUniqueId()
487
-			   . '-' . $link->getToken();
486
+						   ->linkToRoute('circles.Navigation.navigate').'#'.$link->getUniqueId()
487
+			   . '-'.$link->getToken();
488 488
 	}
489 489
 
490 490
 
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
 	public static function generateUserParameter(SharingFrame $frame) {
497 497
 
498 498
 		if ($frame->getCloudId() !== null) {
499
-			$name = $frame->getAuthor() . '@' . $frame->getCloudId();
499
+			$name = $frame->getAuthor().'@'.$frame->getCloudId();
500 500
 		} else {
501 501
 			$name = MiscService::getDisplay($frame->getAuthor(), Member::TYPE_USER);
502 502
 		}
Please login to merge, or discard this patch.
lib/Controller/FederatedController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
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
 			[
Please login to merge, or discard this patch.
lib/Service/CirclesService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -510,24 +510,24 @@
 block discarded – undo
510 510
 		switch ($type) {
511 511
 			case Circle::CIRCLES_PERSONAL:
512 512
 				return $urlGen->getAbsoluteURL(
513
-					$urlGen->imagePath(Application::APP_NAME, 'personal' . $ext)
513
+					$urlGen->imagePath(Application::APP_NAME, 'personal'.$ext)
514 514
 				);
515 515
 			case Circle::CIRCLES_CLOSED:
516 516
 				return $urlGen->getAbsoluteURL(
517
-					$urlGen->imagePath(Application::APP_NAME, 'closed' . $ext)
517
+					$urlGen->imagePath(Application::APP_NAME, 'closed'.$ext)
518 518
 				);
519 519
 			case Circle::CIRCLES_SECRET:
520 520
 				return $urlGen->getAbsoluteURL(
521
-					$urlGen->imagePath(Application::APP_NAME, 'secret' . $ext)
521
+					$urlGen->imagePath(Application::APP_NAME, 'secret'.$ext)
522 522
 				);
523 523
 			case Circle::CIRCLES_PUBLIC:
524 524
 				return $urlGen->getAbsoluteURL(
525
-					$urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext)
525
+					$urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext)
526 526
 				);
527 527
 		}
528 528
 
529 529
 		return $urlGen->getAbsoluteURL(
530
-			$urlGen->imagePath(Application::APP_NAME, 'black_circle' . $ext)
530
+			$urlGen->imagePath(Application::APP_NAME, 'black_circle'.$ext)
531 531
 		);
532 532
 	}
533 533
 
Please login to merge, or discard this patch.
appinfo/autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 
32 32
 namespace OCA\Circles\AppInfo;
33 33
 
34
-$composerDir = __DIR__ . '/../vendor/';
34
+$composerDir = __DIR__.'/../vendor/';
35 35
 
36
-if (is_dir($composerDir) && file_exists($composerDir . 'autoload.php')) {
37
-	require_once $composerDir . 'autoload.php';
36
+if (is_dir($composerDir) && file_exists($composerDir.'autoload.php')) {
37
+	require_once $composerDir.'autoload.php';
38 38
 }
39 39
 
Please login to merge, or discard this patch.
appinfo/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,5 +32,5 @@
 block discarded – undo
32 32
 $app->registerFilesNavigation();
33 33
 $app->registerFilesPlugin();
34 34
 
35
-require_once __DIR__ . '/autoload.php';
35
+require_once __DIR__.'/autoload.php';
36 36
 
Please login to merge, or discard this patch.
lib/Service/MembersService.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -344,7 +344,7 @@
 block discarded – undo
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"));
Please login to merge, or discard this patch.
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 * @param $ident
127 127
 	 * @param int $type
128 128
 	 *
129
-	 * @return array
129
+	 * @return Member[]
130 130
 	 * @throws Exception
131 131
 	 */
132 132
 	public function addMember($circleUniqueId, $ident, $type) {
@@ -285,8 +285,8 @@  discard block
 block discarded – undo
285 285
 	/**
286 286
 	 * Verify if a local account is valid.
287 287
 	 *
288
-	 * @param $ident
289
-	 * @param $type
288
+	 * @param string $ident
289
+	 * @param integer $type
290 290
 	 *
291 291
 	 * @throws NoUserException
292 292
 	 */
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 	 * Verify if a mail have a valid format.
308 308
 	 *
309 309
 	 * @param $ident
310
-	 * @param $type
310
+	 * @param integer $type
311 311
 	 *
312 312
 	 * @throws EmailAccountInvalidFormatException
313 313
 	 */
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	 * Verify if a contact exist in current user address books.
336 336
 	 *
337 337
 	 * @param $ident
338
-	 * @param $type
338
+	 * @param integer $type
339 339
 	 *
340 340
 	 * @throws NoUserException
341 341
 	 * @throws EmailAccountInvalidFormatException
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 	 * @param int $type
455 455
 	 * @param int $level
456 456
 	 *
457
-	 * @return array
457
+	 * @return Member[]
458 458
 	 * @throws Exception
459 459
 	 */
460 460
 	public function levelMember($circleUniqueId, $name, $type, $level) {
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 	/**
486 486
 	 * @param Circle $circle
487 487
 	 * @param Member $member
488
-	 * @param $level
488
+	 * @param integer $level
489 489
 	 *
490 490
 	 * @throws Exception
491 491
 	 */
@@ -560,9 +560,9 @@  discard block
 block discarded – undo
560 560
 	/**
561 561
 	 * @param string $circleUniqueId
562 562
 	 * @param string $name
563
-	 * @param $type
563
+	 * @param integer $type
564 564
 	 *
565
-	 * @return array
565
+	 * @return Member[]
566 566
 	 * @throws Exception
567 567
 	 */
568 568
 	public function removeMember($circleUniqueId, $name, $type) {
Please login to merge, or discard this patch.
lib/Db/TokensRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 
114 114
 			return $token;
115 115
 		} catch (Exception $e) {
116
-			$this->miscService->log('exception while generateTokenForMember: ' . $e->getMessage());
116
+			$this->miscService->log('exception while generateTokenForMember: '.$e->getMessage());
117 117
 
118 118
 			return '';
119 119
 		}
Please login to merge, or discard this patch.
lib/Circles/FileSharingBroadcaster.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.