| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 14 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function createService(ServiceLocatorInterface $serviceLocator)  | 
            ||
| 13 |     { | 
            ||
| 14 | /* @var $adapter Zend\Http\Client\Adapter\AdapterInterface */  | 
            ||
| 15 |         $adapter = $serviceLocator->get('ZfSnapGeoip\HttpClient\Adapter'); | 
            ||
| 16 | |||
| 17 |         $config = $serviceLocator->get('config'); | 
            ||
| 18 | $options = $config['maxmind']['http_client']['options'];  | 
            ||
| 19 | |||
| 20 | $client = new Client();  | 
            ||
| 21 | $client->setAdapter($adapter);  | 
            ||
| 22 | $client->setOptions($options);  | 
            ||
| 23 | |||
| 24 | return $client;  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 28 |