Completed
Push — master ( 6cfe9f...d6cbe8 )
by Paul
13s queued 10s
created

inital_version_interface   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A update_data() 0 8 1
1
<?php
2
/**
3
 *
4
 * 2FA extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2015 Paul Sohier
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace paul999\tfa\migrations;
12
13
class inital_version_interface extends \phpbb\db\migration\migration
14
{
15
	/**
16
	 * Add or update data in the database
17
	 *
18
	 * @return array Array of table data
19
	 * @access public
20
	 */
21
	public function update_data()
22
	{
23
		return array(
24
			// Other extension can use this version to deterime if the extension is installed,
25
			// And if the interface for the module is compatible with the version they use.
26
			array('config.add', array('tfa_module_interface_version', '1.0.0')),
27
		);
28
	}
29
}
30