Passed
Pull Request — develop-3.2.x (#54)
by Mario
05:24 queued 03:13
created

v320_m7_update_data   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 9 1
A depends_on() 0 3 1
1
<?php
2
/**
3
 *
4
 * PayPal Donation extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2015 Skouat
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace skouat\ppde\migrations\v32x;
12
13
class v320_m7_update_data extends \phpbb\db\migration\migration
14
{
15
	public static function depends_on()
16
	{
17
		return array('\skouat\ppde\migrations\v32x\v320_m6_update_data');
18
	}
19
20
	public function update_data()
21
	{
22
		return array(
23
			// INTL Settings
24
			array('config.add', array('ppde_default_locale', '')),
25
			array('config.add', array('ppde_intl_detected', false)),
26
			array('config.add', array('ppde_intl_version', '')),
27
			array('config.add', array('ppde_intl_version_valid', false)),
28
			array('config.update', array('ppde_first_start', true)),
29
		);
30
	}
31
}
32