Code Duplication    Length = 10-10 lines in 2 locations

src/date/DateFormat.class.php 2 locations

@@ 300-309 (lines=10) @@
297
                    $out .= $token[1];
298
                    break;
299
300
                case self::T_ERA:
301
                    $era = $data[DateDefinitions::ERA];
302
                    if ($count == 4) {
303
                        $out .= $locale->getCalendarEraWide($calendarType, $era);
304
                    } elseif ($count == 5) {
305
                        $out .= $locale->getCalendarEraNarrow($calendarType, $era);
306
                    } else {
307
                        $out .= $locale->getCalendarEraAbbreviated($calendarType, $era);
308
                    }
309
                    break;
310
311
                case self::T_YEAR:
312
                    $year = $data[DateDefinitions::YEAR];
@@ 361-370 (lines=10) @@
358
                    $out .= $value;
359
                    break;
360
361
                case self::T_DAY_OF_WEEK:
362
                    $dow = $data[DateDefinitions::DAY_OF_WEEK];
363
                    if ($count == 4) {
364
                        $out .= $locale->getCalendarDayWide($calendarType, $dow);
365
                    } elseif ($count == 5) {
366
                        $out .= $locale->getCalendarDayNarrow($calendarType, $dow);
367
                    } else {
368
                        $out .= $locale->getCalendarDayAbbreviated($calendarType, $dow);
369
                    }
370
                    break;
371
372
                case self::T_DAY_OF_YEAR:
373
                    $out .= str_pad($data[DateDefinitions::DAY_OF_YEAR], $count, '0', STR_PAD_LEFT);