| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 2 | private function getClientForConfiguration(ConnectionConfiguration $configuration, string $clientKey): Client |
|
| 59 | { |
||
| 60 | 2 | if (!$this->registry->hasClient($clientKey)) { |
|
| 61 | 2 | $client = $this->createClient($configuration); |
|
| 62 | 2 | $this->registry->addClient($clientKey, $client); |
|
| 63 | |||
| 64 | 2 | return $client; |
|
| 65 | } |
||
| 66 | |||
| 67 | 1 | return $this->registry->getClient($clientKey); |
|
| 68 | } |
||
| 69 | } |
||
| 70 |