CommonDataCore   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 27
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A info() 0 7 1
A install() 0 3 1
A uninstall() 0 2 1
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