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::findByOwner()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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