Code Duplication    Length = 10-10 lines in 2 locations

src/Actions/ManagesAccountContacts.php 2 locations

@@ 116-125 (lines=10) @@
113
     *
114
     * @return AccountContact
115
     */
116
    public function findOrCreateAccountContact($contact, $account, $jobTitle)
117
    {
118
        $association = $this->findAccountContact($contact, $account);
119
120
        if ($association instanceof AccountContact) {
121
            return $association;
122
        }
123
124
        return $this->createAccountContact($contact, $account, $jobTitle);
125
    }
126
127
    /**
128
     * Update or create an account contact.
@@ 136-145 (lines=10) @@
133
     *
134
     * @return AccountContact
135
     */
136
    public function updateOrCreateAccountContact($contact, $account, $jobTitle)
137
    {
138
        $association = $this->findAccountContact($contact, $account);
139
140
        if ($association instanceof AccountContact) {
141
            return $this->updateAccountContact($association->id, $jobTitle);
142
        }
143
144
        return $this->createAccountContact($contact, $account, $jobTitle);
145
    }
146
147
    /**
148
     * Delete an existing account association.