Completed
Push — dev ( 8f8cd7...5b0430 )
by Tristan
16s
created

HomepageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Http\Controllers;
4
5
use Illuminate\Support\Facades\Lang;
6
use App\Http\Controllers\Controller;
7
8
class HomepageController extends Controller {
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class HomepageController
Loading history...
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
9
10
    /**
11
     * Show the home page
12
     * @return \Illuminate\Http\Response
0 ignored issues
show
Coding Style introduced by
There must be exactly one blank line before the tags in a doc comment
Loading history...
13
     */
14
    public function __invoke() {
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...
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
16
            'home' => Lang::get('applicant/home'),
17
            'hero' => Lang::get('common/hero')
18
        ]);
0 ignored issues
show
Coding Style introduced by
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
19
    }
20
21
}
22