These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * Taken from |
||
5 | * https://github.com/laravel/framework/blob/5.3/src/Illuminate/Auth/Console/stubs/make/controllers/HomeController.stub |
||
6 | */ |
||
7 | |||
8 | namespace App\Http\Controllers; |
||
9 | |||
10 | use App\Http\Requests; |
||
11 | use Illuminate\Http\Request; |
||
12 | |||
13 | /** |
||
14 | * Class HomeController |
||
15 | * @package App\Http\Controllers |
||
16 | */ |
||
17 | class HomeController extends Controller |
||
18 | { |
||
19 | /** |
||
20 | * Create a new controller instance. |
||
21 | * |
||
22 | * @return void |
||
0 ignored issues
–
show
|
|||
23 | */ |
||
24 | public function __construct() |
||
25 | { |
||
26 | $this->middleware('auth'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Show the application dashboard. |
||
31 | * |
||
32 | * @return Response |
||
33 | */ |
||
34 | public function index() |
||
35 | { |
||
36 | return view('adminlte::home'); |
||
37 | } |
||
38 | } |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.