CommonDataCore::install()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Epesi\Base\CommonData;
4
5
use Epesi\Core\System\Modules\ModuleCore;
0 ignored issues
show
Bug introduced by
The type Epesi\Core\System\Modules\ModuleCore 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...
6
7
class CommonDataCore extends ModuleCore
8
{
9
	protected static $alias = 'commondata';
10
	
11
	protected static $view = CommonDataSettings::class;
12
	
13
	protected static $joints = [
14
			Integration\CommonDataSystemSettings::class,
15
	];
16
	
17
	public static function info()
18
	{
19
		return [
20
				__('Author') => 'Georgi Hristov',
21
				__('Copyright') => 'X Systems Ltd',
22
				'',
23
				'Provides commondata lists functionality'
24
		];
25
	}
26
	
27
	public function install()
28
	{
29
	    Models\CommonData::migrate();
30
	}
31
	
32
	public function uninstall()
33
	{
34
	    
35
	}
36
}
37