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'];
@@ 1933-1936 (lines=4) @@
1930
                        $row['start_date']
1931
                    );
1932
                }
1933
                if (!empty($row['end_date'])) {
1934
                    $event['end'] = $this->formatEventDate($row['end_date']);
1935
                    $event['end_date_localtime'] = api_get_local_time(
1936
                        $row['end_date']
1937
                    );
1938
                }
1939
@@ 2073-2076 (lines=4) @@
2070
                        $row['start_date']
2071
                    );
2072
                }
2073
                if (!empty($row['end_date'])) {
2074
                    $event['end'] = $this->formatEventDate($row['end_date']);
2075
                    $event['end_date_localtime'] = api_get_local_time(
2076
                        $row['end_date']
2077
                    );
2078
                }
2079