| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 17 | protected function getClient($clientName) |
|
| 24 | { |
||
| 25 | 17 | $clientName = $clientName ?: 'gbprod.elastica_extra.default_client'; |
|
| 26 | |||
| 27 | 17 | $client = $this->getContainer() |
|
| 28 | 17 | ->get( |
|
| 29 | 17 | $clientName, |
|
| 30 | ContainerInterface::NULL_ON_INVALID_REFERENCE |
||
| 31 | 17 | ) |
|
| 32 | 17 | ; |
|
| 33 | |||
| 34 | 17 | $this->validateClient($client, $clientName); |
|
| 35 | |||
| 36 | 15 | return $client; |
|
| 37 | } |
||
| 38 | |||
| 57 |