Passed
Push — feature/azure-webapp-pipeline-... ( 5f3462...4237ea )
by Grant
04:59
created

AwardRecipientTypeController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
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 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
1
<?php
2
3
namespace App\Http\Controllers\Api;
4
5
use App\Http\Controllers\Controller;
6
use App\Models\Lookup\AwardRecipientType;
7
use Illuminate\Http\Resources\Json\JsonResource;
8
9
class AwardRecipientTypeController extends Controller
10
{
11
    /**
12
     * Return all award recipient types as an array
13
     *
14
     * @return mixed
15
     */
16
    public function index()
17
    {
18
        return JsonResource::collection(AwardRecipientType::all());
19
    }
20
}
21