Passed
Push — feature/screening-plan ( 9839f4...98fecd )
by Tristan
08:19
created

ScreeningPlanController::createForJob()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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\Http\Request;
6
use App\Models\JobPoster;
7
use Illuminate\Support\Facades\Lang;
8
use Illuminate\View\View;
9
10
class ScreeningPlanController extends Controller
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class ScreeningPlanController
Loading history...
11
{
12
13
    /**
14
     * Show the form for creating a new resource.
15
     *
16
     * @param  JobPoster $job The job to create a screen plan for.
17
     * @return View
0 ignored issues
show
Coding Style introduced by
Tag cannot be grouped with parameter tags in a doc comment
Loading history...
18
     */
19
    public function createForJob(JobPoster $job): View
0 ignored issues
show
Unused Code introduced by
The parameter $job is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

19
    public function createForJob(/** @scrutinizer ignore-unused */ JobPoster $job): View

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        return view(
22
            'manager/screening-plan',
23
            [
24
                'screening' => Lang::get('manager/screening-plan')
25
            ]
26
        );
27
    }
28
}
29