Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function handle(Event $event): void { |
||
34 | if (!($event instanceof CommentsEntityEvent)) { |
||
35 | // Unrelated |
||
36 | return; |
||
37 | } |
||
38 | |||
39 | $event->addEntityCollection('files', function ($name) { |
||
40 | $nodes = \OC::$server->getUserFolder()->getById((int)$name); |
||
41 | return !empty($nodes); |
||
42 | }); |
||
45 |