Code Duplication    Length = 4-4 lines in 2 locations

src/Bpack247/Customer.php 2 locations

@@ 705-708 (lines=4) @@
702
                (string) $xml->PreferredLanguage
703
            );
704
        }
705
        if (isset($xml->ReceivePromotions) && $xml->ReceivePromotions != '') {
706
            $receivePromotions = in_array((string) $xml->ReceivePromotions, array('true', '1'));
707
            $customer->setReceivePromotions($receivePromotions);
708
        }
709
        if (isset($xml->actived) && $xml->actived != '') {
710
            $activated = in_array((string) $xml->actived, array('true', '1'));
711
            $customer->setActivated($activated);
@@ 709-712 (lines=4) @@
706
            $receivePromotions = in_array((string) $xml->ReceivePromotions, array('true', '1'));
707
            $customer->setReceivePromotions($receivePromotions);
708
        }
709
        if (isset($xml->actived) && $xml->actived != '') {
710
            $activated = in_array((string) $xml->actived, array('true', '1'));
711
            $customer->setActivated($activated);
712
        }
713
        if (isset($xml->Title) && $xml->Title != '') {
714
            $title = (string) $xml->Title;
715
            $title = ucfirst(strtolower($title));