Code Duplication    Length = 7-7 lines in 2 locations

module/Applications/src/Applications/Mail/StatusChange.php 1 location

@@ 59-65 (lines=7) @@
56
     * @param string|null $status
57
     * @return $this
58
     */
59
    public function setApplication(ApplicationInterface $application, $status = null)
60
    {
61
        $this->application = $application;
62
        $this->setTo($application->getContact()->getEmail(), $application->getContact()->getDisplayName(false));
63
        $this->setVariablesFromApplication($application);
64
        return $this;
65
    }
66
67
    /**
68
     * Gets the formal salutation of the applicant

module/Applications/src/Applications/Mail/Confirmation.php 1 location

@@ 101-107 (lines=7) @@
98
     * @param ApplicationInterface $application
99
     * @return $this
100
     */
101
    public function setApplication(ApplicationInterface $application)
102
    {
103
        $this->application = $application;
104
        $this->setTo($application->getContact()->getEmail(), $application->getContact()->getDisplayName());
105
        $this->setVariablesFromApplication($application);
106
        return $this;
107
    }
108
109
    /**
110
     * @param $recruiter