Code Duplication    Length = 5-5 lines in 3 locations

class/faq.php 3 locations

@@ 511-515 (lines=5) @@
508
                    $notificationHandler->triggerEvent('faq', $this->faqid(), 'approved', $tags);
509
                    break;
510
511
                case _SF_NOT_FAQ_SUBMITTED:
512
                    $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/faq.php?faqid=' . $this->faqid();
513
                    $notificationHandler->triggerEvent('global_faq', 0, 'submitted', $tags);
514
                    $notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'submitted', $tags);
515
                    break;
516
517
                case _SF_NOT_QUESTION_PUBLISHED:
518
                    $tags['FAQ_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/answer.php?faqid=' . $this->faqid();
@@ 524-528 (lines=5) @@
521
                    $notificationHandler->triggerEvent('question', $this->faqid(), 'approved', $tags);
522
                    break;
523
524
                case _SF_NOT_QUESTION_SUBMITTED:
525
                    $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/question.php?op=mod&faqid=' . $this->faqid();
526
                    $notificationHandler->triggerEvent('global_question', 0, 'submitted', $tags);
527
                    $notificationHandler->triggerEvent('category_question', $this->categoryid(), 'submitted', $tags);
528
                    break;
529
530
                case _SF_NOT_FAQ_REJECTED:
531
                    $notificationHandler->triggerEvent('faq', $this->faqid(), 'rejected', $tags);
@@ 534-538 (lines=5) @@
531
                    $notificationHandler->triggerEvent('faq', $this->faqid(), 'rejected', $tags);
532
                    break;
533
534
                case _SF_NOT_NEW_ANSWER_PROPOSED:
535
                    $tags['WAITINGFILES_URL'] = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/admin/answer.php?op=mod&faqid=' . $this->faqid();
536
                    $notificationHandler->triggerEvent('global_faq', 0, 'answer_proposed', $tags);
537
                    $notificationHandler->triggerEvent('category_faq', $this->categoryid(), 'answer_proposed', $tags);
538
                    break;
539
540
                case _SF_NOT_NEW_ANSWER_PUBLISHED:
541
                    $notificationHandler->triggerEvent('global_faq', 0, 'answer_published', $tags);