| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function prune() |
||
| 43 | { |
||
| 44 | if (!$this->isEnabled() || is_null($this->config['limit'])) { |
||
| 45 | return 0; |
||
| 46 | } |
||
| 47 | |||
| 48 | $limit = (int) $this->config['limit']; |
||
| 49 | $whitelistedLimit = $this->config['whitelist']['whitelist_limit']; |
||
| 50 | |||
| 51 | return EntryModel::prune($limit, $whitelistedLimit); |
||
| 52 | } |
||
| 69 |