Code Duplication    Length = 3-3 lines in 2 locations

WebStream/Log/Test/Providers/LoggerProvider.php 2 locations

@@ 232-234 (lines=3) @@
229
    {
230
        $day_of_year = 24 * 365;
231
        $year = date("Y");
232
        if (($year % 4 === 0 && $year % 100 !== 0) || $year % 400 === 0) {
233
            $day_of_year = 24 * 366;
234
        }
235
236
        return [
237
            ["log.test6.day.ini", 1],
@@ 251-253 (lines=3) @@
248
        $day_of_month = intval(date("t", time()));
249
        $day_of_year = 24 * 365;
250
        $year = date("Y");
251
        if (($year % 4 === 0 && $year % 100 !== 0) || $year % 400 === 0) {
252
            $day_of_year = 24 * 366;
253
        }
254
255
        return [
256
            ["log.test6.day.ini", 24],