Completed
Pull Request — dev (#312)
by Tristan
09:36 queued 03:25
created

HomepageController::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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() {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on a new line
Loading history...
15
        return view('applicant/home', ['home' => Lang::get('applicant/home'),
1 ignored issue
show
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
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
            'hero' => Lang::get('common/hero')]);
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...
17
    }
18
19
}
20