Passed
Push — feature/job-builder/impact-red... ( f714a3...6a7c4d )
by Tristan
53:44 queued 41:42
created

JobBuilderController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 10
c 1
b 0
f 0
dl 0
loc 35
ccs 0
cts 12
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A details() 0 5 1
A intro() 0 5 1
A environment() 0 5 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Support\Facades\Lang;
6
use App\Http\Controllers\Controller;
7
8
class JobBuilderController extends Controller
9
{
10
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
11
     * Show the Job Builder Intro page
12
     * @return \Illuminate\Http\Response
13
     */
14
    public function intro($jobId = null)
15
    {
16
        return view(
17
            'manager/job-builder-intro',
18
            ['title' => Lang::get('manager/job_builder.intro_title'), 'jobId' => $jobId]
19
        );
20
    }
21
22
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
23
     * Show the Job Builder Details page
24
     * @return \Illuminate\Http\Response
25
     */
26
    public function details($jobId = null)
27
    {
28
        return view(
29
            'manager/job-builder-details',
30
            ['title' => Lang::get('manager/job_builder.details_title'), 'jobId' => $jobId]
31
        );
32
    }
33
34
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
35
     * Show the Job Builder Work Environment page
36
     * @return \Illuminate\Http\Response
37
     */
38
    public function environment($jobId = null)
39
    {
40
        return view(
41
            'manager/job-builder-environment',
42
            ['title' => Lang::get('manager/job_builder.environment_title'), 'jobId' => $jobId]
43
        );
44
    }
45
}
46