Total Complexity | 7 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | class ext extends \phpbb\extension\base |
||
13 | { |
||
14 | /** |
||
15 | * Check whether or not the extension can be enabled. |
||
16 | * |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function is_enableable() |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Check whether or not this extension can be enabled on the current phpBB version. |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | protected function phpbb_version_is_ok() |
||
32 | { |
||
33 | $config = $this->container->get('config'); |
||
34 | return phpbb_version_compare($config['version'], '3.2.2', '>=') && phpbb_version_compare($config['version'], '3.3.0', '<'); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Check whether or not the extension's dependencies are available and installed. |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | protected function required_exts_are_ok() |
||
55 | } |
||
56 | } |
||
57 |