Code Duplication    Length = 4-5 lines in 2 locations

lib/Algo/Tools/PairwiseStats.php 2 locations

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