Completed
Push — master ( 8f1be6...8aac33 )
by Park Jong-Hun
02:46
created

Welcome   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 8 1
1
<?php
2
3
namespace App\Controller\Admin;
4
5
use Core\ViewModel;
6
7
class Welcome {
8
    public function index(ViewModel $view) {
9
        $view->set('absolutePath', realpath(__DIR__ . '/../../'));
10
        $view->set('phpVersion', PHP_VERSION);
11
        $view->set('os', PHP_OS);
12
        $view->set('sapi', PHP_SAPI);
13
14
        return 'welcome';
15
    }
16
}