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
@@ 1925-1928 (lines=4) @@
1922
                    }
1923
                }
1924
1925
                if (!empty($row['start_date'])) {
1926
                    $event['start'] = $this->formatEventDate(
1927
                        $row['start_date']
1928
                    );
1929
                    $event['start_date_localtime'] = api_get_local_time(
1930
                        $row['start_date']
1931
                    );
@@ 2065-2068 (lines=4) @@
2062
                    $event['editable'] = true;
2063
                }
2064
2065
                if (!empty($row['start_date'])) {
2066
                    $event['start'] = $this->formatEventDate(
2067
                        $row['start_date']
2068
                    );
2069
                    $event['start_date_localtime'] = api_get_local_time(
2070
                        $row['start_date']
2071
                    );