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

ext::is_enableable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 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