unc_002   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 0
f 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 7 1
A depends_on() 0 3 1
1
<?php
2
/**
3
 *
4
 * User Notification Control [UNC]. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2020-forever, Dark❶, https://dark1.tech
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace dark1\usernotificationcontrol\migrations;
12
13
/**
14
 * @ignore
15
 */
16
use phpbb\db\migration\migration;
17
18
/**
19
 * Migration stage 002 : N/A
20
 */
21
class unc_002 extends migration
22
{
23
	static public function depends_on()
24
	{
25
		return ['\dark1\usernotificationcontrol\migrations\unc_001_install'];
26
	}
27
28
	public function update_data()
29
	{
30
		return [
31
			// Remove Config if Exist
32
			['if', [
33
				isset($this->config['dark1_unc']),
34
				['config.remove', ['dark1_unc']],
35
			]],
36
		];
37
	}
38
}
39