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

Campaigns   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A all() 0 4 1
A findByOwner() 0 4 1
1
<?php
2
3
namespace DoeSangue\Repositories;
4
use DoeSangue\Models\Campaign;
5
6
class Campaigns
7
{
8
9
    public $campaign;
10
11
    public function __construct(Campaign $campaign)
12
    {
13
        $this->campaign = $campaign;
14
    }
15
16
    public function all()
17
    {
18
        return $this->all();
19
    }
20
21
    public function findByOwner($owner)
22
    {
23
        return $this->where('user_id', $owner)->get();
0 ignored issues
show
Bug introduced by
The method where() does not seem to exist on object<DoeSangue\Repositories\Campaigns>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
    }
25
26
}
27