Passed
Push — feature/review_applications ( ea5c91 )
by Tristan
08:44
created

DemoController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 17
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A reviewApplications() 0 10 1
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\Models\JobPoster;
7
8
class DemoController extends Controller
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class DemoController
Loading history...
9
{
10
    /**
11
     * Display a listing of the applicants to specified job.
12
     *
13
     * @return \Illuminate\Http\Response
14
     */
15
    public function reviewApplications()
16
    {
17
        $jobPoster = factory(JobPoster::class)->create();
18
        return view('manager/review_applications', [
1 ignored issue
show
Bug Best Practice introduced by
The expression return view('manager/rev...ubmitted_applications)) returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
Coding Style introduced by
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
19
            /*Localization Strings*/
20
            'jobs_l10n' => Lang::get('manager/job_index'),
21
22
            /* Data */
23
            'job' => $jobPoster,
24
            'applications' => $jobPoster->submitted_applications,
25
        ]);
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...
26
    }
27
}
28