| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function is_enableable() |
||
| 17 | { |
||
| 18 | global $db; |
||
| 19 | $fulltext = new \vse\similartopics\core\fulltext_support($db); |
||
| 20 | if (!$fulltext->is_mysql() & !$fulltext->is_postgres()) |
||
| 21 | { |
||
| 22 | $this->container->get('user')->add_lang_ext('vse/similartopics', 'info_acp_similar_topics'); |
||
| 23 | trigger_error($this->container->get('user')->lang['PST_NOT_COMPATIBLE'], E_USER_WARNING); |
||
| 24 | return false; |
||
| 25 | } |
||
| 26 | |||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 61 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.