Completed
Push — develop ( 660ae6...f77be0 )
by Daniel
08:50
created

ext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_enableable() 0 5 1
1
<?php
2
/**
3
 *
4
 * @package sitemaker
5
 * @copyright (c) 2013 Daniel A. (blitze)
6
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
 *
8
 */
9
10
namespace blitze\sitemaker;
11
12
class ext extends \phpbb\extension\base
13
{
14 2
	public function is_enableable()
15
	{
16 2
		$config = $this->container->get('config');
17 2
		return phpbb_version_compare($config['version'], '3.2.1', '>=');
18
	}
19
}
20