Passed
Push — master ( 21fe0e...dd9c2f )
by Ryosuke
06:08 queued 04:25
created

Builder::orHasByNonDependentSubquery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Illuminate\Database\Eloquent
4
{
5
    if (false) {
6
        class Builder
7
        {
8
            /**
9
             * Convert has() and whereHas() constraints to non-dependent subqueries.
10
             *
11
             * @param  string|string[]   $relationMethod
12
             * @param  callable[]|null[] $constraints
13
             * @return $this
14
             * @see \Mpyw\EloquentHasByNonDependentSubquery\HasByNonDependentSubqueryMacro
15
             */
16
            public function hasByNonDependentSubquery($relationMethod, ?callable ...$constraints)
0 ignored issues
show
Unused Code introduced by
The parameter $relationMethod is not used and could be removed.

This check looks from 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.

This check looks from 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
             * Convert has() and whereHas() constraints to non-dependent subqueries.
23
             *
24
             * @param  string|string[]   $relationMethod
25
             * @param  callable[]|null[] $constraints
26
             * @return $this
27
             * @see \Mpyw\EloquentHasByNonDependentSubquery\HasByNonDependentSubqueryMacro
28
             */
29
            public function orHasByNonDependentSubquery($relationMethod, ?callable ...$constraints)
0 ignored issues
show
Unused Code introduced by
The parameter $relationMethod is not used and could be removed.

This check looks from 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.

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

Loading history...
30
            {
31
                return $this;
32
            }
33
34
            /**
35
             * Convert has() and whereHas() constraints to non-dependent subqueries.
36
             *
37
             * @param  string|string[]   $relationMethod
38
             * @param  callable[]|null[] $constraints
39
             * @return $this
40
             * @see \Mpyw\EloquentHasByNonDependentSubquery\HasByNonDependentSubqueryMacro
41
             */
42
            public function doesntHaveByNonDependentSubquery($relationMethod, ?callable ...$constraints)
0 ignored issues
show
Unused Code introduced by
The parameter $relationMethod is not used and could be removed.

This check looks from 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.

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

Loading history...
43
            {
44
                return $this;
45
            }
46
47
            /**
48
             * Convert has() and whereHas() constraints to non-dependent subqueries.
49
             *
50
             * @param  string|string[]   $relationMethod
51
             * @param  callable[]|null[] $constraints
52
             * @return $this
53
             * @see \Mpyw\EloquentHasByNonDependentSubquery\HasByNonDependentSubqueryMacro
54
             */
55
            public function orDoesntHaveByNonDependentSubquery($relationMethod, ?callable ...$constraints)
0 ignored issues
show
Unused Code introduced by
The parameter $relationMethod is not used and could be removed.

This check looks from 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.

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

Loading history...
56
            {
57
                return $this;
58
            }
59
        }
60
    }
61
}
62