Completed
Push — master ( 52970f...c6d773 )
by Tristan
24:57 queued 10:40
created

HomepageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 9
ccs 4
cts 4
cp 1
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\Http\Request;
6
use Illuminate\Support\Facades\Lang;
7
use App\Http\Controllers\Controller;
8
9
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...
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 10
    public function __invoke() {
15 10
        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 10
            'home' => Lang::get('applicant/home'),
17 10
            '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
}