m3_admin_form   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 3 1
A effectively_installed() 0 3 1
A update_data() 0 4 1
1
<?php
2
/**
3
 *
4
 * Akismet. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2019 Jakub Senko <[email protected]>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace senky\akismet\migrations\v10x;
12
13
class m3_admin_form extends \phpbb\db\migration\migration
14
{
15
	/**
16
	 * {@inheritDoc}
17
	 */
18
	public function effectively_installed()
19
	{
20
		return $this->config->offsetExists('senky_akismet_check_admin_form');
21
	}
22
23
	/**
24
	 * {@inheritDoc}
25
	 */
26
	static public function depends_on()
27
	{
28
		return ['\senky\akismet\migrations\v10x\m2_configs'];
29
	}
30
31
	/**
32
	 * {@inheritDoc}
33
	 */
34
	public function update_data()
35
	{
36
		return [
37
			['config.add', ['senky_akismet_check_admin_form', 0]],
38
		];
39
	}
40
}
41