HomeController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A index() 0 3 1
1
<?php
2
3
namespace Yeelight\Http\Controllers;
4
5
/**
6
 * Class HomeController
7
 *
8
 * @category Yeelight
9
 *
10
 * @package Yeelight\Http\Controllers
11
 *
12
 * @author Sheldon Lee <[email protected]>
13
 *
14
 * @license https://opensource.org/licenses/MIT MIT
15
 *
16
 * @link https://www.yeelight.com
17
 */
18
class HomeController extends BaseController
19
{
20
    /**
21
     * Create a new controller instance.
22
     *
23
     * @return void
24
     */
25
    public function __construct()
26
    {
27
    }
28
29
    /**
30
     * Show the application dashboard.
31
     *
32
     * @return \Illuminate\Http\Response
33
     */
34
    public function index()
35
    {
36
        return redirect(config('yeelight.backend.route.prefix'));
0 ignored issues
show
Bug Best Practice introduced by
The expression return redirect(config('...backend.route.prefix')) returns the type Illuminate\Http\Redirect...nate\Routing\Redirector which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
37
    }
38
}
39