Passed
Push — dependabot/npm_and_yarn/dev/st... ( 790070...2dbd00 )
by
unknown
17:44 queued 12:22
created

HrAdvisorController::show()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace App\Http\Controllers\Api;
4
5
use App\Models\HrAdvisor;
6
use App\Http\Controllers\Controller;
7
8
class HrAdvisorController extends Controller
9
{
10
    /**
11
     * Display the specified resource.
12
     *
13
     * @param  \App\Models\HrAdvisor $hrAdvisor Incoming advisor.
14
     * @return \Illuminate\Http\Response
15
     */
16
    public function show(HrAdvisor $hrAdvisor)
17
    {
18
        return response()->json($hrAdvisor->toArray());
0 ignored issues
show
Bug introduced by
The function response 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 */ response()->json($hrAdvisor->toArray());
Loading history...
19
    }
20
}
21