Passed
Push — dependabot/npm_and_yarn/dev/sa... ( 003e03...a9167e )
by Yonathan
06:21 queued 12s
created

HrAdvisorController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A show() 0 3 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