Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

UsersController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace DoeSangue\Http\Controllers\API\V1;
4
5
use DoeSangue\Http\Controllers\Controller;
6
use DoeSangue\Http\Resources\UserCollection;
7
use DoeSangue\Http\Resources\User as UserResource;
8
use DoeSangue\Models\User;
9
10
class UsersController extends Controller
11
{
12
    public function index()
13
    {
14
15
        return new UserCollection(User::paginate(50));
16
17
    }
18
19
    public function show($donor)
20
    {
21
        return new UserResource(User::find($donor));
22
    }
23
24
}
25