discourse/discourse — pull request #610 by PragTob (2013-04-01 13:35:26+00:00)
Title: Battling code duplication in the Report class

* the reports mainly followed the same structure but with
different classes, so I took the code and a class as its
parameter
* the method on which reports.data is generated may change
but mostly is count_per_day so made that optional
* grouped the refactored methods to the top, some unrefactored
methods remain but those are a bit harder to refactor, and not
as reusable so I'd like to get this through first
* Overall I believe this patch enhances maintainability :-)

I already signed the contribution thingy :-)

Cheers,
Tobi