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
Push — development ( 3add70...a51bef )
by José
06:20
created

Users   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 25
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A all() 0 4 1
A findByUserName() 0 4 1
A filterActive() 0 5 1
A filterUnactive() 0 4 1
1
<?php
2
3
namespace DoeSangue\Repositories;
4
use DoeSangue\Models\User;
5
6
class Users
7
{
8
9
    public function all()
10
    {
11
        return User::all();
12
    }
13
14
    public function findByUserName($username)
15
    {
16
        return User::whereUsername($username)->get();
17
    }
18
19
    public function filterActive()
20
    {
21
        //
22
        return User::whereActive(true)->get();
23
    }
24
25
    public function filterUnactive()
26
    {
27
        return User::whereActive(false)->get();
28
    }
29
30
}
31