Completed
Push — master ( b4956d...e33aad )
by Matt
03:29 queued 02:00
created

ext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_enableable() 0 4 1
1
<?php
2
/**
3
 *
4
 * Database Optimize & Repair Tool
5
 *
6
 * @copyright (c) 2013, 2019 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\dbtool;
12
13
use phpbb\extension\base;
14
15
class ext extends base
16
{
17
	const CHECK = 'CHECK';
18
	const REPAIR = 'REPAIR';
19
	const OPTIMIZE = 'OPTIMIZE';
20
21
	/**
22
	 * {@inheritDoc}
23
	 */
24
	public function is_enableable()
25
	{
26
		return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=');
27
	}
28
}
29