v337_m18_auto_video   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 28
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A depends_on() 0 5 1
A update_data() 0 4 1
A effectively_installed() 0 3 1
1
<?php
2
/**
3
 *
4
 * Advanced BBCode Box
5
 *
6
 * @copyright (c) 2023 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\abbc3\migrations;
12
13
class v337_m18_auto_video extends \phpbb\db\migration\migration
0 ignored issues
show
Bug introduced by
The type phpbb\db\migration\migration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
{
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	public function effectively_installed()
19
	{
20
		return $this->config->offsetExists('abbc3_auto_video');
21
	}
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public static function depends_on()
27
	{
28
		return [
29
			'\vse\abbc3\migrations\v330_m13_acp',
30
			'\vse\abbc3\migrations\v336_m17_unparse',
31
		];
32
	}
33
34
	/**
35
	 * {@inheritdoc}
36
	 */
37
	public function update_data()
38
	{
39
		return [
40
			['config.add', ['abbc3_auto_video', 0]],
41
		];
42
	}
43
}
44