Issues (26)

migrations/install_tip.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 *
4
 * Topic Image Preview. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2017, Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\topicimagepreview\migrations;
12
13
class install_tip extends \phpbb\db\migration\migration
0 ignored issues
show
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
	public function effectively_installed()
16
	{
17
		return $this->config->offsetExists('vse_tip_new');
18
	}
19
20
	public static function depends_on()
21
	{
22
		return ['\phpbb\db\migration\data\v320\v320'];
23
	}
24
25
	public function update_data()
26
	{
27
		return [
28
			['config.add', ['vse_tip_new', 1]],
29
			['config.add', ['vse_tip_num', 3]],
30
			['config.add', ['vse_tip_dim', 200]],
31
		];
32
	}
33
}
34