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