Passed
Push — master ( a357e7...195a07 )
by Anton
04:22 queued 01:11
created

Addons   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A loader() 0 4 1
A init() 0 4 1
1
<?php
2
3
namespace Modules\Extend\Utils\Extension {
4
5
	use Modules\Extend;
6
7
	abstract class Addons extends Extend\Utils\Extension {
8
9
		# Create new loader
10
11
		public static function loader(bool $load_all = true) {
12
13
			return new static::$loader_class($load_all);
14
		}
15
16
		# Init add-ons list
17
18
		public static function init() {
19
20
			static::$loader = new static::$loader_class(false);
21
		}
22
	}
23
}
24