|
@@ -134,7 +134,7 @@ discard block |
|
|
block discarded – undo |
|
134
|
134
|
$subject = ''; |
|
135
|
135
|
switch ($subjectIdentifier) { |
|
136
|
136
|
case self::SUBJECT_BOARD_CREATE: |
|
137
|
|
- $subject = $ownActivity ? $this->l10n->t('You have created a new board {board}'): $this->l10n->t('{user} has created a new board {board}'); |
|
|
137
|
+ $subject = $ownActivity ? $this->l10n->t('You have created a new board {board}') : $this->l10n->t('{user} has created a new board {board}'); |
|
138
|
138
|
break; |
|
139
|
139
|
case self::SUBJECT_BOARD_DELETE: |
|
140
|
140
|
$subject = $ownActivity ? $this->l10n->t('You have deleted the board {board}') : $this->l10n->t('{user} has deleted the board {board}'); |
|
@@ -303,10 +303,10 @@ discard block |
|
|
block discarded – undo |
|
303
|
303
|
try { |
|
304
|
304
|
$object = $this->findObjectForEntity($objectType, $entity); |
|
305
|
305
|
} catch (DoesNotExistException $e) { |
|
306
|
|
- \OC::$server->getLogger()->error('Could not create activity entry for ' . $subject . '. Entity not found.', (array)$entity); |
|
|
306
|
+ \OC::$server->getLogger()->error('Could not create activity entry for ' . $subject . '. Entity not found.', (array) $entity); |
|
307
|
307
|
return null; |
|
308
|
308
|
} catch (MultipleObjectsReturnedException $e) { |
|
309
|
|
- \OC::$server->getLogger()->error('Could not create activity entry for ' . $subject . '. Entity not found.', (array)$entity); |
|
|
309
|
+ \OC::$server->getLogger()->error('Could not create activity entry for ' . $subject . '. Entity not found.', (array) $entity); |
|
310
|
310
|
return null; |
|
311
|
311
|
} |
|
312
|
312
|
|
|
@@ -375,7 +375,7 @@ discard block |
|
|
block discarded – undo |
|
375
|
375
|
break; |
|
376
|
376
|
} |
|
377
|
377
|
|
|
378
|
|
- if ($subject === self::SUBJECT_CARD_UPDATE_DESCRIPTION){ |
|
|
378
|
+ if ($subject === self::SUBJECT_CARD_UPDATE_DESCRIPTION) { |
|
379
|
379
|
$card = $subjectParams['card']; |
|
380
|
380
|
if ($card->getLastEditor() === $this->userId) { |
|
381
|
381
|
return null; |
|
@@ -394,7 +394,7 @@ discard block |
|
|
block discarded – undo |
|
394
|
394
|
$event->setApp('deck') |
|
395
|
395
|
->setType($eventType) |
|
396
|
396
|
->setAuthor($author === null ? $this->userId : $author) |
|
397
|
|
- ->setObject($objectType, (int)($object->getId() ?? $object['id']), $object->getTitle()) |
|
|
397
|
+ ->setObject($objectType, (int) ($object->getId() ?? $object['id']), $object->getTitle()) |
|
398
|
398
|
->setSubject($subject, array_merge($subjectParams, $additionalParams)) |
|
399
|
399
|
->setTimestamp(time()); |
|
400
|
400
|
|
|
@@ -461,7 +461,7 @@ discard block |
|
|
block discarded – undo |
|
461
|
461
|
$objectId = $entity->getObjectId(); |
|
462
|
462
|
break; |
|
463
|
463
|
default: |
|
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
|
return $this->cardMapper->find($objectId); |
|
467
|
467
|
} |
|
@@ -476,11 +476,11 @@ discard block |
|
|
block discarded – undo |
|
476
|
476
|
$objectId = $entity->getBoardId(); |
|
477
|
477
|
break; |
|
478
|
478
|
default: |
|
479
|
|
- throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType); |
|
|
479
|
+ throw new InvalidArgumentException('No entity relation present for ' . $className . ' to ' . $objectType); |
|
480
|
480
|
} |
|
481
|
481
|
return $this->boardMapper->find($objectId); |
|
482
|
482
|
} |
|
483
|
|
- throw new InvalidArgumentException('No entity relation present for '. $className . ' to ' . $objectType); |
|
|
483
|
+ throw new InvalidArgumentException('No entity relation present for ' . $className . ' to ' . $objectType); |
|
484
|
484
|
} |
|
485
|
485
|
|
|
486
|
486
|
private function findDetailsForStack($stackId) { |