Issues (902)

acpcleanup/migrations/m1_init.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
*
4
* @package phpBB Gallery ACP Cleanup
5
* @copyright (c) 2014 satanasov
6
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7
*
8
*/
9
10
namespace phpbbgallery\acpcleanup\migrations;
11
12
class m1_init 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...
13
{
14
	static public function depends_on()
15
	{
16
		return array('\phpbbgallery\core\migrations\release_1_2_0');
17
	}
18
19
	public function update_data()
20
	{
21
		return array(
22
			array('permission.add', array('a_gallery_cleanup', true, 'a_board')),
23
			array('module.add', array(
24
				'acp',
25
				'PHPBB_GALLERY',
26
				array(
27
					'module_basename'	=> '\phpbbgallery\acpcleanup\acp\main_module',
28
					'module_langname'	=> 'ACP_GALLERY_CLEANUP',
29
					'module_mode'		=> 'cleanup',
30
					'module_auth'		=> 'ext_phpbbgallery/acpcleanup && acl_a_gallery_cleanup',
31
				)
32
			)),
33
		);
34
	}
35
}
36