Code Duplication    Length = 3-3 lines in 4 locations

src/AppBundle/Controller/ArticleInfoController.php 4 locations

@@ 720-722 (lines=3) @@
717
            }
718
719
            // Increment "edits per <time>" counts
720
            if (strtotime($rev['timestamp']) > strtotime('-1 day')) {
721
                $data['general']['count_history']['day']++;
722
            }
723
            if (strtotime($rev['timestamp']) > strtotime('-1 week')) {
724
                $data['general']['count_history']['week']++;
725
            }
@@ 723-725 (lines=3) @@
720
            if (strtotime($rev['timestamp']) > strtotime('-1 day')) {
721
                $data['general']['count_history']['day']++;
722
            }
723
            if (strtotime($rev['timestamp']) > strtotime('-1 week')) {
724
                $data['general']['count_history']['week']++;
725
            }
726
            if (strtotime($rev['timestamp']) > strtotime('-1 month')) {
727
                $data['general']['count_history']['month']++;
728
            }
@@ 726-728 (lines=3) @@
723
            if (strtotime($rev['timestamp']) > strtotime('-1 week')) {
724
                $data['general']['count_history']['week']++;
725
            }
726
            if (strtotime($rev['timestamp']) > strtotime('-1 month')) {
727
                $data['general']['count_history']['month']++;
728
            }
729
            if (strtotime($rev['timestamp']) > strtotime('-1 year')) {
730
                $data['general']['count_history']['year']++;
731
            }
@@ 729-731 (lines=3) @@
726
            if (strtotime($rev['timestamp']) > strtotime('-1 month')) {
727
                $data['general']['count_history']['month']++;
728
            }
729
            if (strtotime($rev['timestamp']) > strtotime('-1 year')) {
730
                $data['general']['count_history']['year']++;
731
            }
732
        }
733
734
        // add percentages