release_1_0_0::depends_on()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 *
5
 * @package phpBB Extension - Active Notifications
6
 * @copyright (c) 2014 Lucifer <https://www.anavaro.com>
7
 * @copyright (c) 2016 kasimi <https://kasimi.net>
8
 * @license GNU General Public License, version 2 (GPL-2.0)
9
 *
10
 */
11
12
namespace anavaro\activenotifications\migrations;
13
14
class release_1_0_0 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...
15
{
16
	/**
17
	* Assign migration file dependencies for this migration
18
	*
19
	* @return array Array of migration files
20
	* @static
21
	* @access public
22
	*/
23
	static public function depends_on()
24
	{
25
		return ['\phpbb\db\migration\data\v310\gold'];
26
	}
27
28
	public function update_data()
29
	{
30
		return [
31
			['config.add', ['notification_pull_time', 60]],
32
		];
33
	}
34
}
35