Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function countItems() { |
||
34 | |||
35 | $hidden = access_show_hidden_entities(true); |
||
36 | |||
37 | $count = elgg_get_entities([ |
||
38 | 'type' => 'object', |
||
39 | 'subtype' => 'discussion_reply', |
||
40 | 'count' => true, |
||
41 | ]); |
||
42 | |||
43 | access_show_hidden_entities($hidden); |
||
44 | |||
45 | return $count; |
||
1 ignored issue
–
show
|
|||
46 | } |
||
71 |