| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | 36 | public function match(array $models, Collection $results, $relation) |
|
| 46 | { |
||
| 47 | 36 | if ($this->customEagerMatchingCallbacks) { |
|
| 48 | 12 | foreach ($this->customEagerMatchingCallbacks as $callback) { |
|
| 49 | 12 | $models = $callback($models, $results, $relation); |
|
| 50 | } |
||
| 51 | |||
| 52 | 12 | return $models; |
|
| 53 | } |
||
| 54 | |||
| 55 | 24 | if ($this->hasLeadingCompositeKey()) { |
|
| 56 | 4 | return $this->matchWithCompositeKey($models, $results, $relation); |
|
| 57 | } |
||
| 58 | |||
| 59 | 20 | return parent::match($models, $results, $relation); |
|
| 60 | } |
||
| 62 |