Conditions | 4 |
Paths | 6 |
Total Lines | 22 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function get_tools() |
||
35 | { |
||
36 | $tools = array(); |
||
37 | |||
38 | /** @var tools\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 | ksort($tools, SORT_STRING); |
||
53 | |||
54 | return $tools; |
||
55 | } |
||
56 | |||
77 |