Passed
Push — master ( 195422...889b95 )
by Georgi
03:03
created

HomeController::index()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 1
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Epesi\Core\Controllers;
4
5
use Illuminate\Routing\Controller;
6
use Epesi\Core\System\SystemCore;
7
use Epesi\Core\HomePage\HomePageCommon;
8
9
class HomeController extends Controller
10
{
11
    public function index()
12
    {
13
    	return SystemCore::isInstalled()? redirect()->route('home'): redirect('install');
14
    }
15
    
16
    public function home()
17
    {
18
    	return redirect(HomePageCommon::getUserHomePage()->path);
19
    }
20
}
21