@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | // Get all mount point owners |
86 | 86 | $cache = $this->mountCollection->getMountCache(); |
87 | - $mounts = $cache->getMountsForFileId((int)$event->getComment()->getObjectId()); |
|
87 | + $mounts = $cache->getMountsForFileId((int) $event->getComment()->getObjectId()); |
|
88 | 88 | if (empty($mounts)) { |
89 | 89 | return; |
90 | 90 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | foreach ($mounts as $mount) { |
94 | 94 | $owner = $mount->getUser()->getUID(); |
95 | 95 | $ownerFolder = $this->rootFolder->getUserFolder($owner); |
96 | - $nodes = $ownerFolder->getById((int)$event->getComment()->getObjectId()); |
|
96 | + $nodes = $ownerFolder->getById((int) $event->getComment()->getObjectId()); |
|
97 | 97 | if (!empty($nodes)) { |
98 | 98 | /** @var Node $node */ |
99 | 99 | $node = array_shift($nodes); |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | foreach ($users as $user => $path) { |
122 | 122 | // numerical user ids end up as integers from array keys, but string |
123 | 123 | // is required |
124 | - $activity->setAffectedUser((string)$user); |
|
124 | + $activity->setAffectedUser((string) $user); |
|
125 | 125 | |
126 | 126 | $activity->setSubject('add_comment_subject', [ |
127 | 127 | 'actor' => $actor, |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function mapperEvent(MapperEvent $event) { |
153 | 153 | $tagIds = $event->getTags(); |
154 | - if ($event->getObjectType() !== 'files' ||empty($tagIds) |
|
154 | + if ($event->getObjectType() !== 'files' || empty($tagIds) |
|
155 | 155 | || !in_array($event->getEvent(), [MapperEvent::EVENT_ASSIGN, MapperEvent::EVENT_UNASSIGN]) |
156 | 156 | || !$this->appManager->isInstalled('activity')) { |
157 | 157 | // System tags not for files, no tags, not (un-)assigning or no activity-app enabled (save the energy) |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | ->setObject($event->getObjectType(), (int) $event->getObjectId()); |
204 | 204 | |
205 | 205 | foreach ($users as $user => $path) { |
206 | - $user = (string)$user; // numerical ids could be ints which are not accepted everywhere |
|
206 | + $user = (string) $user; // numerical ids could be ints which are not accepted everywhere |
|
207 | 207 | $activity->setAffectedUser($user); |
208 | 208 | |
209 | 209 | foreach ($tags as $tag) { |