Code Duplication    Length = 6-9 lines in 2 locations

src/AppBundle/Controller/EditSummaryController.php 2 locations

@@ 205-210 (lines=6) @@
202
203
            // Now do the same, if we have an edit summary
204
            if ($row['rev_minor_edit'] == 0) {
205
                if ($row['rev_comment'] !== '') {
206
                    isset($monthEditsummaryTotals[$monthkey]) ?
207
                        $monthEditsummaryTotals[$monthkey]++ :
208
                        $monthEditsummaryTotals[$monthkey] = 1;
209
                    $totalSummariesMajor++;
210
                }
211
212
                // Now do the same for recent edits
213
                $totalEditsMajor++;
@@ 223-231 (lines=9) @@
220
            } else {
221
                // The exact same procedure as documented above for minor edits
222
                // If there is a comment, count it
223
                if ($row['rev_comment'] !== '') {
224
                    isset($monthEditsummaryTotals[$monthkey]) ?
225
                        $monthEditsummaryTotals[$monthkey]++ :
226
                        $monthEditsummaryTotals[$monthkey] = 1;
227
                    $totalSummariesMinor++;
228
                    $totalEditsMinor++;
229
                } else {
230
                    $totalEditsMinor++;
231
                }
232
233
                // Handle recent edits
234
                if ($recentEditsMinor < 150) {