@@ -82,14 +82,14 @@ discard block |
||
82 | 82 | continue; |
83 | 83 | } |
84 | 84 | |
85 | - $ids[] = (string)$id; |
|
85 | + $ids[] = (string) $id; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | $ids[] = (string) $directory->getId(); |
89 | 89 | $unread = $this->commentsManager->getNumberOfUnreadCommentsForObjects('files', $ids, $this->userSession->getUser()); |
90 | 90 | |
91 | 91 | foreach ($unread as $id => $count) { |
92 | - $this->cachedUnreadCount[(int)$id] = $count; |
|
92 | + $this->cachedUnreadCount[(int) $id] = $count; |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
@@ -117,15 +117,15 @@ discard block |
||
117 | 117 | $this->cacheDirectory($node); |
118 | 118 | } |
119 | 119 | |
120 | - $propFind->handle(self::PROPERTY_NAME_COUNT, function () use ($node) { |
|
121 | - return $this->commentsManager->getNumberOfCommentsForObject('files', (string)$node->getId()); |
|
120 | + $propFind->handle(self::PROPERTY_NAME_COUNT, function() use ($node) { |
|
121 | + return $this->commentsManager->getNumberOfCommentsForObject('files', (string) $node->getId()); |
|
122 | 122 | }); |
123 | 123 | |
124 | - $propFind->handle(self::PROPERTY_NAME_HREF, function () use ($node) { |
|
124 | + $propFind->handle(self::PROPERTY_NAME_HREF, function() use ($node) { |
|
125 | 125 | return $this->getCommentsLink($node); |
126 | 126 | }); |
127 | 127 | |
128 | - $propFind->handle(self::PROPERTY_NAME_UNREAD, function () use ($node) { |
|
128 | + $propFind->handle(self::PROPERTY_NAME_UNREAD, function() use ($node) { |
|
129 | 129 | if (isset($this->cachedUnreadCount[$node->getId()])) { |
130 | 130 | return $this->cachedUnreadCount[$node->getId()]; |
131 | 131 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | // in case we end up somewhere else, unexpectedly. |
147 | 147 | return null; |
148 | 148 | } |
149 | - $commentsPart = 'dav/comments/files/' . rawurldecode($node->getId()); |
|
149 | + $commentsPart = 'dav/comments/files/'.rawurldecode($node->getId()); |
|
150 | 150 | $href = substr_replace($href, $commentsPart, $entryPoint + strlen('/remote.php/')); |
151 | 151 | return $href; |
152 | 152 | } |
@@ -164,8 +164,8 @@ discard block |
||
164 | 164 | return null; |
165 | 165 | } |
166 | 166 | |
167 | - $lastRead = $this->commentsManager->getReadMark('files', (string)$node->getId(), $user); |
|
167 | + $lastRead = $this->commentsManager->getReadMark('files', (string) $node->getId(), $user); |
|
168 | 168 | |
169 | - return $this->commentsManager->getNumberOfCommentsForObject('files', (string)$node->getId(), $lastRead); |
|
169 | + return $this->commentsManager->getNumberOfCommentsForObject('files', (string) $node->getId(), $lastRead); |
|
170 | 170 | } |
171 | 171 | } |