Code Duplication    Length = 4-4 lines in 3 locations

main/inc/lib/agenda.lib.php 3 locations

@@ 1499-1502 (lines=4) @@
1496
                    );
1497
                }
1498
1499
                if (!empty($row['enddate'])) {
1500
                    $event['end'] = $this->formatEventDate($row['enddate']);
1501
                    $event['end_date_localtime'] = api_get_local_time(
1502
                        $row['enddate']
1503
                    );
1504
                }
1505
                $event['description'] = $row['text'];
@@ 1925-1928 (lines=4) @@
1922
                        $row['start_date']
1923
                    );
1924
                }
1925
                if (!empty($row['end_date'])) {
1926
                    $event['end'] = $this->formatEventDate($row['end_date']);
1927
                    $event['end_date_localtime'] = api_get_local_time(
1928
                        $row['end_date']
1929
                    );
1930
                }
1931
@@ 2065-2068 (lines=4) @@
2062
                        $row['start_date']
2063
                    );
2064
                }
2065
                if (!empty($row['end_date'])) {
2066
                    $event['end'] = $this->formatEventDate($row['end_date']);
2067
                    $event['end_date_localtime'] = api_get_local_time(
2068
                        $row['end_date']
2069
                    );
2070
                }
2071