Passed
Push — bugfix/relatives_not_saving ( 6485fa...f1e1c5 )
by Tristan
13:39
created

HomepageController::manager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
use Illuminate\Support\Facades\Lang;
7
use App\Http\Controllers\Controller;
8
9
class HomepageController extends Controller {
10
    /**
11
     * Show the home page
12
     * @return \Illuminate\Http\Response
13
     */
14
    public function __invoke() {
0 ignored issues
show
introduced by
Method \App\Http\Controllers\HomepageController::__invoke() does not have return type hint for its return value but it should be possible to add it based on @return annotation "\Illuminate\Http\Response".
Loading history...
15
        return view('applicant/home', [
1 ignored issue
show
Bug Best Practice introduced by
The expression return view('applicant/h...g::get('common/hero'))) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
16
            'home' => Lang::get('applicant/home'),
17
            'hero' => Lang::get('common/hero')
18
        ]);
19
    }
20
}