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

Builder   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 54
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A hasByNonDependentSubquery() 0 4 1
A orHasByNonDependentSubquery() 0 4 1
A doesntHaveByNonDependentSubquery() 0 4 1
A orDoesntHaveByNonDependentSubquery() 0 4 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 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