Issues (413)

app/Http/Controllers/HomeController.php (1 issue)

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