Conditions | 3 |
Paths | 4 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function getSummary() |
||
48 | { |
||
49 | $count = $this->Elements()->Elements()->Count(); |
||
50 | $suffix = $count === 1 ? 'element': 'elements'; |
||
51 | $summary = $this->ListDescription ? DBField::create_field('HTMLText', $this->ListDescription)->Summary(10) . '<br />': ''; |
||
52 | |||
53 | return DBField::create_field('HTMLText', $summary . ' <span class="el-meta">Contains ' . $count . ' ' . $suffix . '</span>'); |
||
54 | } |
||
56 |
This check marks private properties in classes that are never used. Those properties can be removed.