| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 38 | 2 | public function getAvailableProcess(): ProcessInterface | |
| 39 |     { | ||
| 40 | 2 |         if ($openProcessKey = $this->handler->getProcessOpened()) { | |
| 41 | 1 | return $this->processFactory->createFromKey($openProcessKey, self::RANGE_IS_REPROCESS); | |
| 42 | } | ||
| 43 | |||
| 44 | 1 | $processKey = $this->handler->createProcessKey(); | |
| 45 | |||
| 46 | 1 | return $this->processFactory->createFromKey($processKey); | |
| 47 | } | ||
| 64 | } |