Passed
Push — feature/hr-portal ( 7494f2...ae4ab3 )
by Chris
07:23 queued 10s
created

HrAdvisorController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 2
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());
19
    }
20
}
21