Completed
Branch 0.2.1 (e70612)
by Anton
09:15
created

Installer   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4
Metric Value
wmc 3
lcom 0
cbo 4
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 12 3
1
<?php
2
3
namespace {
4
5
	use Modules\Install;
6
7
	class Installer extends System {
8
9
		# Installer handle method
10
11
		public function handle() {
12
13
			# Determine handler class
14
15
			$checked = (Install::status() && Validate::boolean(Request::get('checked')));
16
17
			$class = ('Handlers\Admin\Install\\' . (!$checked ? 'Check' : 'Database'));
18
19
			# ------------------------
20
21
			new $class();
22
		}
23
	}
24
}
25