HomeController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
1
<?php namespace Anomaly\UsersModule\Http\Controller\Admin;
2
3
use Anomaly\Streams\Platform\Http\Controller\AdminController;
4
use Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationCollection;
5
use Illuminate\Contracts\Config\Repository;
6
use Illuminate\Routing\Redirector;
7
8
/**
9
 * Class HomeController
10
 *
11
 * @link          http://pyrocms.com/
12
 * @author        PyroCMS, Inc. <[email protected]>
13
 * @author        Ryan Thompson <[email protected]>
14
 */
15
class HomeController extends AdminController
16
{
17
18
    /**
19
     * Redirect to the users home page.
20
     *
21
     * @param  NavigationCollection              $navigation
22
     * @param  Redirector                        $redirect
23
     * @return \Illuminate\Http\RedirectResponse
24
     */
25
    public function index(NavigationCollection $navigation, Redirector $redirect)
26
    {
27
        $home = $navigation->home();
28
29
        return $redirect->to($home->getHref());
30
    }
31
}
32