Builder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
c 2
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasByJoin() 0 3 1
1
<?php
2
3
namespace Illuminate\Database\Eloquent
4
{
5
    if (false) {
6
        class Builder
7
        {
8
            /**
9
             * Convert has() and whereHas() constraints to join() ones for BelongsTo and HasOne relations.
10
             *
11
             * @param  string|string[]   $relationMethod
12
             * @param  callable[]|null[] $constraints
13
             * @return $this
14
             * @see \Mpyw\EloquentHasByJoin\HasByJoinMacro
15
             */
16
            public function hasByJoin($relationMethod, ?callable ...$constraints)
0 ignored issues
show
Unused Code introduced by
The parameter $relationMethod is not used and could be removed. ( Ignorable by Annotation )

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

16
            public function hasByJoin(/** @scrutinizer ignore-unused */ $relationMethod, ?callable ...$constraints)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $constraints is not used and could be removed. ( Ignorable by Annotation )

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

16
            public function hasByJoin($relationMethod, /** @scrutinizer ignore-unused */ ?callable ...$constraints)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
            {
18
                return $this;
19
            }
20
        }
21
    }
22
}
23