Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 1492-1495 (lines=4) @@
1489
                $event['sent_to'] = get_lang('Me');
1490
                $event['type'] = 'personal';
1491
1492
                if (!empty($row['date'])) {
1493
                    $event['start'] = $this->formatEventDate($row['date']);
1494
                    $event['start_date_localtime'] = api_get_local_time(
1495
                        $row['date']
1496
                    );
1497
                }
1498
@@ 1917-1920 (lines=4) @@
1914
                    }
1915
                }
1916
1917
                if (!empty($row['start_date'])) {
1918
                    $event['start'] = $this->formatEventDate(
1919
                        $row['start_date']
1920
                    );
1921
                    $event['start_date_localtime'] = api_get_local_time(
1922
                        $row['start_date']
1923
                    );
@@ 2057-2060 (lines=4) @@
2054
                    $event['editable'] = true;
2055
                }
2056
2057
                if (!empty($row['start_date'])) {
2058
                    $event['start'] = $this->formatEventDate(
2059
                        $row['start_date']
2060
                    );
2061
                    $event['start_date_localtime'] = api_get_local_time(
2062
                        $row['start_date']
2063
                    );