| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 29 | public function make(AlgoliaConfig $config) |
|
| 21 | 29 | { |
|
| 22 | 29 | return new AlgoliaManager( |
|
| 23 | 29 | new Client( |
|
| 24 | $config->getApplicationId(), |
||
| 25 | $config->getApiKey(), |
||
| 26 | $config->getHostsArray(), |
||
| 27 | $config->getOptions() |
||
| 28 | ), |
||
| 29 | new ActiveRecordFactory(), |
||
| 30 | new ActiveQueryChunker() |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | 2 | ||
| 52 |