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

Test Failed
Pull Request — development (#48)
by José
06:52
created

UsersController::active()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A UsersController::show() 0 4 1
1
<?php
2
3
namespace DoeSangue\Http\Controllers\API\V1;
4
5
use Illuminate\Http\Request;
6
use DoeSangue\Http\Controllers\Controller;
7
use DoeSangue\Http\Resources\UserCollection;
8
use DoeSangue\Http\Resources\User as UserResource;
9
use DoeSangue\Models\User;
10
11
class UsersController extends Controller
12
{
13
    public function index()
14
    {
15
16
        return new UserCollection(User::paginate(50));
17
18
    }
19
20
    public function show($donor)
21
    {
22
        return new UserResource(User::find($donor));
23
    }
24
25
}
26