Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3.072 |
Changes | 0 |
1 | <?php |
||
20 | 1 | public static function buildCandidateRow(Candidate $candidate, $skipAlreadyDeployed) |
|
21 | { |
||
22 | 1 | $status = $candidate->getStatus(); |
|
23 | |||
24 | 1 | if ($skipAlreadyDeployed && $status === Candidate::STATUS_ALREADY_DEPLOYED) { |
|
25 | return null; |
||
26 | } |
||
27 | |||
28 | 1 | return [$candidate->getName(), self::normalizeStatus($status)]; |
|
29 | } |
||
30 | |||
68 |