| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function query( $query, $scope, $excludes ) { |
||
| 27 | |||
| 28 | // Query each Autocomplete service and merge the results. |
||
| 29 | return array_reduce( $this->autocomplete_services, function ( $carry, $item ) use ( $query, $scope, $excludes ) { |
||
| 30 | |||
| 31 | $results = $item->query( $query, $scope, $excludes ); |
||
| 32 | |||
| 33 | return array_merge( $carry, $results ); |
||
| 34 | }, array() ); |
||
| 35 | |||
| 36 | } |
||
| 37 | |||
| 39 |