Code Duplication    Length = 7-7 lines in 2 locations

module/Jobs/src/Jobs/Controller/ManageController.php 2 locations

@@ 457-463 (lines=7) @@
454
            }
455
        }
456
457
        if ($params == 'declined') {
458
            $jobEntity->changeStatus(Status::REJECTED, sprintf(/*@translate*/ "Job opening was rejected by %s", $user->getInfo()->getDisplayName()));
459
            $jobEntity->setIsDraft(true);
460
            $this->repositoryService->store($jobEntity);
461
            $jobEvents->trigger(JobEvent::EVENT_JOB_REJECTED, $jobEvent);
462
            $this->notification()->success(/*@translate */'Job has been rejected');
463
        }
464
465
        if ($params == 'approved') {
466
            $jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->getInfo()->getDisplayName()));
@@ 465-471 (lines=7) @@
462
            $this->notification()->success(/*@translate */'Job has been rejected');
463
        }
464
465
        if ($params == 'approved') {
466
            $jobEntity->changeStatus(Status::ACTIVE, sprintf(/*@translate*/ "Job opening was activated by %s", $user->getInfo()->getDisplayName()));
467
            $this->repositoryService->store($jobEntity);
468
            $jobEvents->trigger(JobEvent::EVENT_JOB_ACCEPTED, $jobEvent);
469
            $this->entitySnapshot($jobEntity);
470
            $this->notification()->success(/* @translate */ 'Job has been approved');
471
        }
472
473
        $viewLink = $this->url()->fromRoute(
474
            'lang/jobs/view',