Completed
Pull Request — master (#25)
by Matt
02:01
created

ext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_enableable() 0 5 1
1
<?php
2
/**
3
 *
4
 * Precise Similar Topics
5
 *
6
 * @copyright (c) 2018 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\similartopics;
12
13
class ext extends \phpbb\extension\base
14
{
15
	public function is_enableable()
16
	{
17
		$db = $this->container->get('dbal.conn');
18
		return in_array($db->get_sql_layer(), array('mysqli', 'mysql4', 'postgres'));
19
	}
20
}
21