update_push_config   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 6 1
A update_data() 0 6 1
1
<?php
2
/**
3
 *
4
 * Ajax Shoutbox extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2014 Paul Sohier <http://www.ajax-shoutbox.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
namespace paul999\ajaxshoutbox\migrations;
11
12
class update_push_config extends \phpbb\db\migration\migration
13
{
14
	static public function depends_on()
0 ignored issues
show
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
15
	{
16
		return array(
17
			'\paul999\ajaxshoutbox\migrations\add_push_config2',
18
		);
19
	}
20
21
	public function update_data()
22
	{
23
		return array(
24
			array('config.update', array('ajaxshoutbox_api_server', 'https://www.shoutbox-app.com/')),
25
		);
26
	}
27
}
28