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

Completed
Push — development ( aa3faf...1831fb )
by José
04:34
created

DonorsController   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
A store() 0 3 1
A update() 0 3 1
A destroy() 0 3 1
1
<?php
2
3
namespace DoeSangue\Http\Controllers\API;
4
5
use Illuminate\Http\Request;
6
use DoeSangue\Http\Controllers\Controller;
7
use DoeSangue\Models\Donor;
8
9
class DonorsController extends Controller
10
{
11
12
    public function index()
13
    {
14
        $donors = Donor::orderBy('id', 'asc')->get();
15
16
        return response()->json(compact('donors'));
17
    }
18
19
    public function store()
20
    {
21
    }
22
23
    public function update()
24
    {
25
    }
26
27
    public function destroy()
28
    {
29
    }
30
}
31