Code Duplication    Length = 5-5 lines in 2 locations

src/date/Calendar.class.php 2 locations

@@ 1348-1352 (lines=5) @@
1345
    public function getActualMaximum($field)
1346
    {
1347
        switch ($field) {
1348
            case DateDefinitions::DATE:
1349
                $cal = clone $this;
1350
                $cal->prepareGetActual($field, false);
1351
                $result = $this->handleGetMonthLength($cal->get(DateDefinitions::EXTENDED_YEAR), $cal->get(DateDefinitions::MONTH));
1352
                break;
1353
1354
            case DateDefinitions::DAY_OF_YEAR:
1355
                $cal = clone $this;
@@ 1354-1358 (lines=5) @@
1351
                $result = $this->handleGetMonthLength($cal->get(DateDefinitions::EXTENDED_YEAR), $cal->get(DateDefinitions::MONTH));
1352
                break;
1353
1354
            case DateDefinitions::DAY_OF_YEAR:
1355
                $cal = clone $this;
1356
                $cal->prepareGetActual($field, false);
1357
                $result = $this->handleGetYearLength($cal->get(DateDefinitions::EXTENDED_YEAR));
1358
                break;
1359
1360
            case DateDefinitions::DAY_OF_WEEK:
1361
            case DateDefinitions::AM_PM: