Passed
Branch master (af0060)
by Matt
04:03 queued 02:19
created

ext::is_enableable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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;
0 ignored issues
show
Bug introduced by
The type phpbb\extension\base was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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', '>=');
0 ignored issues
show
Bug introduced by
The function phpbb_version_compare was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
		return /** @scrutinizer ignore-call */ phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=');
Loading history...
Bug introduced by
The constant vse\dbtool\PHPBB_VERSION was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
27
	}
28
}
29