Code Duplication    Length = 4-5 lines in 2 locations

lib/Algo/Tools/PairwiseStats.php 2 locations

@@ 47-50 (lines=4) @@
44
                endif;
45
46
                // Worst pairwise opposition
47
                if ($comparison[$candidate_key]['worst_pairwise_opposition'] < $candidate_data['lose'][$opponentKey]) :
48
49
                    $comparison[$candidate_key]['worst_pairwise_opposition'] = $candidate_data['lose'][$opponentKey];
50
                endif;
51
52
53
                // for each Win, null, Lose
@@ 71-75 (lines=5) @@
68
                    $comparison[$candidate_key]['sum_defeat_margin'] += $defeat_margin;
69
70
                    // Worst winning defeat
71
                    if ($comparison[$candidate_key]['worst_pairwise_defeat_winning'] < $candidate_data['lose'][$opponentKey]) :
72
73
                        $comparison[$candidate_key]['worst_pairwise_defeat_winning'] = $candidate_data['lose'][$opponentKey];
74
75
                    endif;
76
77
                endif;
78