HomeController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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