Code Duplication    Length = 5-5 lines in 2 locations

src/dbo/events.php 2 locations

@@ 545-549 (lines=5) @@
542
                array_push($to, $row['email']);
543
            }
544
            // Current assignee of the record should receive notification of each record's event.
545
            elseif ($row['account_id'] == $record['responsible_id'])
546
            {
547
                debug_write_log(DEBUG_TRACE, '[event_mail] User is responsible of record.');
548
                array_push($to, $row['email']);
549
            }
550
            // Subscribed to the record should receive notification of each record's event.
551
            elseif (in_array($row['account_id'], $subscribes))
552
            {
@@ 551-555 (lines=5) @@
548
                array_push($to, $row['email']);
549
            }
550
            // Subscribed to the record should receive notification of each record's event.
551
            elseif (in_array($row['account_id'], $subscribes))
552
            {
553
                debug_write_log(DEBUG_TRACE, '[event_mail] User is subscribed to record.');
554
                array_push($to, $row['email']);
555
            }
556
            else
557
            {
558
                debug_write_log(DEBUG_TRACE, '[event_mail] User should not recieve the notification.');