Completed
Pull Request — master (#709)
by Julius
02:30
created
lib/Activity/ActivityManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		$subject = '';
134 134
 		switch ($subjectIdentifier) {
135 135
 			case self::SUBJECT_BOARD_CREATE:
136
-				$subject = $ownActivity ? $this->l10n->t('You have created a new board {board}'): $this->l10n->t('{user} has created a new board {board}');
136
+				$subject = $ownActivity ? $this->l10n->t('You have created a new board {board}') : $this->l10n->t('{user} has created a new board {board}');
137 137
 				break;
138 138
 			case self::SUBJECT_BOARD_DELETE:
139 139
 				$subject = $ownActivity ? $this->l10n->t('You have deleted the board {board}') : $this->l10n->t('{user} has deleted the board {board}');
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
 				break;
370 370
 		}
371 371
 
372
-		if ($subject === self::SUBJECT_CARD_UPDATE_DESCRIPTION){
372
+		if ($subject === self::SUBJECT_CARD_UPDATE_DESCRIPTION) {
373 373
 			$subjectParams['diff'] = true;
374 374
 			$eventType = 'deck_card_description';
375 375
 		}
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 		$event->setApp('deck')
382 382
 			->setType($eventType)
383 383
 			->setAuthor($this->userId)
384
-			->setObject($objectType, (int)$object->getId(), $object->getTitle())
384
+			->setObject($objectType, (int) $object->getId(), $object->getTitle())
385 385
 			->setSubject($subject, array_merge($subjectParams, $additionalParams))
386 386
 			->setTimestamp(time());
387 387
 
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 					$objectId = $entity->getObjectId();
443 443
 					break;
444 444
 				default:
445
-					throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType);
445
+					throw new InvalidArgumentException('No entity relation present for ' . $className . ' to ' . $objectType);
446 446
 			}
447 447
 			return $this->cardMapper->find($objectId);
448 448
 		}
@@ -457,11 +457,11 @@  discard block
 block discarded – undo
457 457
 					$objectId = $entity->getBoardId();
458 458
 					break;
459 459
 				default:
460
-					throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType);
460
+					throw new InvalidArgumentException('No entity relation present for ' . $className . ' to ' . $objectType);
461 461
 			}
462 462
 			return $this->boardMapper->find($objectId);
463 463
 		}
464
-		throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType);
464
+		throw new InvalidArgumentException('No entity relation present for ' . $className . ' to ' . $objectType);
465 465
 	}
466 466
 
467 467
 	private function findDetailsForStack($stackId) {
Please login to merge, or discard this patch.