Code Duplication    Length = 7-7 lines in 2 locations

src/Xtools/ArticleInfo.php 2 locations

@@ 268-274 (lines=7) @@
265
     * Get the average number of edits per month to the page.
266
     * @return double
267
     */
268
    public function editsPerMonth()
269
    {
270
        $editsPerMonth = $this->getTotalDays()
271
            ? $this->getNumRevisionsProcessed() / ($this->getTotalDays() / (365 / 12))
272
            : 0;
273
        return min($this->getNumRevisionsProcessed(), round($editsPerMonth, 1));
274
    }
275
276
    /**
277
     * Get the average number of edits per year to the page.
@@ 280-286 (lines=7) @@
277
     * Get the average number of edits per year to the page.
278
     * @return double
279
     */
280
    public function editsPerYear()
281
    {
282
        $editsPerYear = $this->getTotalDays()
283
            ? $this->getNumRevisionsProcessed() / ($this->getTotalDays() / 365)
284
            : 0;
285
        return min($this->getNumRevisionsProcessed(), round($editsPerYear, 1));
286
    }
287
288
    /**
289
     * Get the average number of edits per editor.