Passed
Push — feature/job-builder/skills-red... ( 47bb6b...f2b07c )
by Tristan
13:28 queued 21s
created

JobBuilderController   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 19
c 1
b 0
f 0
dl 0
loc 71
ccs 0
cts 24
cp 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A details() 0 5 1
A intro() 0 5 1
A environment() 0 5 1
A impact() 0 5 1
A tasks() 0 5 1
A skills() 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
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
47
     * Show the Job Builder Impact page
48
     * @return \Illuminate\Http\Response
49
     */
50
    public function impact($jobId = null)
51
    {
52
        return view(
53
            'manager/job-builder-impact',
54
            ['title' => Lang::get('manager/job_builder.impact_title'), 'jobId' => $jobId]
55
        );
56
    }
57
58
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
59
     * Show the Job Builder Tasks page
60
     * @return \Illuminate\Http\Response
61
     */
62
    public function tasks($jobId)
63
    {
64
        return view(
65
            'manager/job-builder-tasks',
66
            ['title' => Lang::get('manager/job_builder.tasks_title'), 'jobId' => $jobId]
67
        );
68
    }
69
70
    /**
1 ignored issue
show
Coding Style Documentation introduced by
Doc comment for parameter "$jobId" missing
Loading history...
71
     * Show the Job Builder Skills page
72
     * @return \Illuminate\Http\Response
73
     */
74
    public function skills($jobId)
75
    {
76
        return view(
77
            'manager/job-builder-skills',
78
            ['title' => Lang::get('manager/job_builder.skills_title'), 'jobId' => $jobId]
79
        );
80
    }
81
}
82