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

HomeController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 2
A home() 0 3 1
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