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
Pull Request — development (#51)
by José
07:48
created

BankController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace DoeSangue\Http\Controllers\API\V1;
4
5
use DoeSangue\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
7
use DoeSangue\Http\Resources\BanksCollection;
8
use DoeSangue\Http\Resources\Bank as BankResource;
9
use DoeSangue\Models\Bank;
10
11
class BankController extends Controller
12
{
13
      /**
14
       * Initialize the class
15
       * and set the middleware
16
       */
17 1
    public function __construct()
18
    {
19 1
        $this->middleware('jwt.auth', [ 'except' => [ 'index' ] ]);
20 1
    }
21
22 1
    public function index()
23
    {
24 1
      return new BanksCollection(Bank::paginate(20));
25
    }
26
27
    public function show($bank)
28
    {
29
      return new BankResource(Bank::find($bank));
30
    }
31
}
32