| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public static function fromRelease(array|object $release, string $cleanTitle): self |
||
| 21 | { |
||
| 22 | $data = is_array($release) ? $release : (array) $release; |
||
|
|
|||
| 23 | |||
| 24 | return new self( |
||
| 25 | releaseId: (int) ($data['id'] ?? 0), |
||
| 26 | searchName: $data['searchname'] ?? '', |
||
| 27 | cleanTitle: $cleanTitle, |
||
| 28 | guid: $data['guid'] ?? null, |
||
| 29 | ); |
||
| 46 |