Completed
Push — develop-3.2.x ( 9a1518...6fced6 )
by Matt
11:19 queued 06:39
created

ext   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_enableable() 0 5 1
1
<?php
2
/**
3
 *
4
 * Advanced BBCode Box
5
 *
6
 * @copyright (c) 2015 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\abbc3;
12
13
class ext extends \phpbb\extension\base
14
{
15
	const BBVIDEO_WIDTH = 560;
16
	const BBVIDEO_HEIGHT = 315;
17
18
	/** string Require 3.2.0-b1 due to INCLUDECSS and migration helper updates. */
19
	const PHPBB_MIN_VERSION = '3.2.0-b1';
20
21
	/**
22
	 * {@inheritdoc}
23
	 */
24 3
	public function is_enableable()
25
	{
26 3
		$config = $this->container->get('config');
27 3
		return phpbb_version_compare($config['version'], self::PHPBB_MIN_VERSION, '>=');
28
	}
29
}
30