| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function create(): API |
||
| 35 | { |
||
| 36 | $path = $this->config->getSessionPath(); |
||
| 37 | if (!file_exists($path)) { |
||
| 38 | return $this->createFromConfig(); |
||
| 39 | } |
||
| 40 | |||
| 41 | try { |
||
| 42 | return $this->createFromSessionPath($path); |
||
| 43 | } catch (Exception $exception) { |
||
| 44 | return $this->createFromConfig(); |
||
| 45 | } |
||
| 61 |