| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function is_enableable() |
||
| 22 | { |
||
| 23 | $db = $this->container->get('dbal.conn'); |
||
| 24 | $valid_db = in_array($db->get_sql_layer(), array('mysqli', 'mysql4', 'postgres')); |
||
| 25 | $valid_phpBB = phpbb_version_compare(PHPBB_VERSION, '3.2.1', '>='); |
||
| 26 | $enableable = $valid_db && $valid_phpBB; |
||
| 27 | |||
| 28 | // Since showing error messages only works for phpBB 3.3.x, the only message we can show is |
||
| 29 | // if the DBMS is incompatible. That is, we can't show somebody on phpBB 3.2.x. the error message |
||
| 30 | // if their board is too old, so there's no reason to try to handle invalid phpBB versions here. |
||
| 31 | if (!$enableable && phpbb_version_compare(PHPBB_VERSION, '3.3.0-b1', '>=')) |
||
| 32 | { |
||
| 33 | $lang = $this->container->get('language'); |
||
| 34 | $lang->add_lang('acp_similar_topics', 'vse/similartopics'); |
||
| 35 | return array($lang->lang('PST_NO_COMPAT')); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $enableable; |
||
| 39 | } |
||
| 41 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths