Passed
Push — master ( 845433...047563 )
by Dark❶
03:28
created

unc_002   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
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 15
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-2021, 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
use phpbb\db\migration\migration;
14
15
class unc_002 extends migration
16
{
17
18
	static public function depends_on()
19
	{
20
		return ['\dark1\usernotificationcontrol\migrations\unc_001_install'];
21
	}
22
23
	public function update_data()
24
	{
25
		return [
26
			// Remove Config if Exist
27
			['if', [
28
				isset($this->config['dark1_unc']),
29
				['config.remove', ['dark1_unc']],
30
			]],
31
		];
32
	}
33
}
34