Completed
Pull Request — master (#72)
by Matt
01:33
created

m2_anonymize_ip::update_data()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 *
4
 * Google Analytics extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2018 phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\googleanalytics\migrations\v10x;
12
13
/**
14
 * Migration stage 2: Add anonymize ip config option
15
 */
16
class m2_anonymize_ip extends \phpbb\db\migration\migration
17
{
18
	/**
19
	 * {@inheritdoc}
20
	 */
21
	static public function depends_on()
22
	{
23
		return array('\phpbb\googleanalytics\migrations\v10x\m1_initial_data');
24
	}
25
26
	/**
27
	 * {@inheritdoc}
28
	 */
29
	public function update_data()
30
	{
31
		return array(
32
			array('config.add', array('ga_anonymize_ip', 0)),
33
		);
34
	}
35
}
36