Code Duplication    Length = 12-12 lines in 2 locations

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/CopyCustomerAddressToContact/LoadMagentoChannel.php 1 location

@@ 252-263 (lines=12) @@
249
     *
250
     * @return Contact
251
     */
252
    protected function createContact(Customer $customer)
253
    {
254
        $contact = new Contact();
255
        $contact->setFirstName($customer->getFirstName());
256
        $contact->setLastName($customer->getLastName());
257
        $contact->setGender($customer->getGender());
258
        $contact->setOwner($this->getUser());
259
        $contact->setOrganization($this->organization);
260
        $this->em->persist($contact);
261
262
        return $contact;
263
    }
264
    /**
265
     * @return $this
266
     */

src/OroCRM/Bundle/MagentoBundle/Tests/Functional/Fixture/ResyncMagentoCustomerAddresses/LoadMagentoChannel.php 1 location

@@ 337-348 (lines=12) @@
334
     *
335
     * @return Contact
336
     */
337
    protected function createContact(Customer $customer)
338
    {
339
        $contact = new Contact();
340
        $contact->setFirstName($customer->getFirstName());
341
        $contact->setLastName($customer->getLastName());
342
        $contact->setGender($customer->getGender());
343
        $contact->setOwner($this->getUser());
344
        $contact->setOrganization($this->organization);
345
        $this->em->persist($contact);
346
347
        return $contact;
348
    }
349
350
    /**
351
     * @return $this