Completed
Push — develop-3.2 ( 3685db...4cc568 )
by Matt
32:16
created

v322_m9_delete_bbcodes   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 4 1
A update_data() 0 6 1
1
<?php
2
/**
3
 *
4
 * Advanced BBCode Box
5
 *
6
 * @copyright (c) 2018 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\abbc3\migrations;
12
13
class v322_m9_delete_bbcodes extends bbcodes_migration_base
14
{
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	public static function depends_on()
19
	{
20
		return array('\vse\abbc3\migrations\v310_m4_install_data');
21
	}
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public function update_data()
27
	{
28
		return array(
29
			array('custom', array(array($this, 'delete_abbc3_bbcodes'))),
30
		);
31
	}
32
33
	/**
34
	 * {@inheritdoc}
35
	 */
36
	protected static $bbcode_data = array(
37
		'youtube' => array(
38
			'bbcode_helpline'	=> 'ABBC3_YOUTUBE_HELPLINE',
39
			'bbcode_match'		=> '[youtube]{URL}[/youtube]',
40
			'bbcode_tpl'		=> '<a href="{URL}" class="bbvideo" data-bbvideo="560,315">{URL}</a>',
41
		),
42
	);
43
}
44