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

Welcome::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 8
rs 9.4285
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
}