Passed
Push — feature/summary-manager-view ( 785ff6...8b5a57 )
by Tristan
06:49 queued 11s
created

JobBuilderController::hrReview()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Support\Facades\Lang;
6
use Illuminate\Support\Facades\Auth;
7
use App\Http\Controllers\Controller;
8
use App\Models\JobPoster;
9
10
class JobBuilderController extends Controller
11
{
12
    /**
13
     * Show the Job Builder mini SPA
14
     * @return \Illuminate\Http\Response
15
     */
16
    public function show()
17
    {
18
        return view(
0 ignored issues
show
Bug introduced by
The function view was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

18
        return /** @scrutinizer ignore-call */ view(
Loading history...
19
            'manager/job-builder-root'
20
        )->with([
21
            'title' => Lang::get('manager/job_builder.title'),
22
        ]);
23
    }
24
25
    public function hrReview(JobPoster $job)
26
    {
27
        return view('hr_advisor/job_review', [
0 ignored issues
show
Bug introduced by
The function view was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

27
        return /** @scrutinizer ignore-call */ view('hr_advisor/job_review', [
Loading history...
28
            'title' => Lang::get('hr_advisor/job_review.title'),
29
            'job' => $job
30
        ]);
31
    }
32
}
33