Passed
Branch master (e751cb)
by Matt
02:48
created

v333_m15_google_fonts::effectively_installed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 1
1
<?php
2
/**
3
*
4
* Advanced BBCode Box
5
*
6
* @copyright (c) 2022 Matt Friedman
7
* @license GNU General Public License, version 2 (GPL-2.0)
8
*
9
*/
10
11
namespace vse\abbc3\migrations;
12
13
class v333_m15_google_fonts extends bbcodes_migration_base
14
{
15
	/**
16
	 * {@inheritDoc}
17
	 */
18
	public function effectively_installed()
19
	{
20
		$config_text = $this->container->get('config_text');
21
22
		return $config_text->get('abbc3_google_fonts') !== null;
23
	}
24
25
	/**
26
	 * {@inheritdoc}
27
	 */
28
	public static function depends_on()
29
	{
30
		return [
31
			'\vse\abbc3\migrations\v310_m4_install_data',
32
			'\vse\abbc3\migrations\v333_m14_update_bbcodes'];
33
	}
34
35
	/**
36
	 * {@inheritdoc}
37
	 */
38
	public function update_data()
39
	{
40
		return [
41
			['config_text.add', ['abbc3_google_fonts', '']],
42
		];
43
	}
44
}
45