| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.0218 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 1 | public static function fromJob(Job $job): self |
|
| 24 | 1 | { |
|
| 25 | 1 | if ($job->skip) { |
|
| 26 | 1 | return self::SKIPPED; |
|
| 27 | 1 | } elseif (str_contains($job->output, " failed. ")) { |
|
| 28 | return self::FAILED; |
||
| 29 | 1 | } elseif (str_starts_with($job->output, "Warning: ")) { |
|
| 30 | 1 | return self::WARNING; |
|
| 31 | } |
||
| 32 | 1 | return self::PASSED; |
|
| 33 | 1 | } |
|
| 35 |