| Conditions | 4 |
| Paths | 6 |
| Total Lines | 20 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function get_tools() |
||
| 35 | { |
||
| 36 | $tools = array(); |
||
| 37 | |||
| 38 | /** @var tool_interface $tool */ |
||
| 39 | foreach ($this->tools as $tool) |
||
| 40 | { |
||
| 41 | if ($tool->is_available()) |
||
| 42 | { |
||
| 43 | $tools[$tool->get_name()] = $tool; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | if (isset($tools['remove_bbcodes'])) |
||
| 48 | { |
||
| 49 | unset($tools['remove_bbcodes_legacy']); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $tools; |
||
| 53 | } |
||
| 54 | |||
| 75 |