Code Duplication    Length = 3-3 lines in 2 locations

system/libraries/Calendar.php 2 locations

@@ 221-223 (lines=3) @@
218
        $days = 0;
219
        $week_number = 1;
220
221
        if (($w = (int) date('w', $first) - $this->week_start) < 0) {
222
            $w = 6;
223
        }
224
225
        if ($w > 0) {
226
            // Number of days in the previous month
@@ 258-260 (lines=3) @@
255
            $days++;
256
        }
257
258
        if (($w = (int) date('w', $last) - $this->week_start) < 0) {
259
            $w = 6;
260
        }
261
262
        if ($w >= 0) {
263
            // i = number of day, t = number of days to pad