Passed
Push — master ( ef1328...91a1d1 )
by Bas
13:32 queued 09:25
created

IsAranguentRelation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRelationExistenceCountQuery() 0 6 1
1
<?php
2
3
namespace LaravelFreelancerNL\Aranguent\Eloquent\Relations\Concerns;
4
5
use Illuminate\Database\Eloquent\Builder;
6
use Illuminate\Database\Query\Expression;
7
8
trait IsAranguentRelation
9
{
10
    /**
11
     * Add the constraints for a relationship count query.
12
     *
13
     * @param  Builder  $query
14
     * @param  Builder  $parentQuery
15
     * @return Builder
16
     */
17 1
    public function getRelationExistenceCountQuery(Builder $query, Builder $parentQuery)
18
    {
19 1
        return $this->getRelationExistenceQuery(
0 ignored issues
show
Bug introduced by
The method getRelationExistenceQuery() does not exist on LaravelFreelancerNL\Aran...rns\IsAranguentRelation. Did you maybe mean getRelationExistenceCountQuery()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
        return $this->/** @scrutinizer ignore-call */ getRelationExistenceQuery(

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...
20 1
            $query,
21
            $parentQuery,
22 1
            new Expression('*')
23
        );
24
    }
25
}
26