| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1);  | 
            ||
| 37 | 1 | public function handle(SharedAppClientCommand $command): PromiseInterface  | 
            |
| 38 |     { | 
            ||
| 39 | 1 |         if (isset($this->apps[$command->getAppId()])) { | 
            |
| 40 | 1 | return resolve($this->apps[$command->getAppId()]);  | 
            |
| 41 | }  | 
            ||
| 42 | |||
| 43 | 1 | $this->apps[$command->getAppId()] = new AsyncClient($this->loop, $command->getAppId());  | 
            |
| 44 | 1 | return resolve($this->apps[$command->getAppId()]);  | 
            |
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 |