protected function initializeCustomer(array $attr)
    {

        // load the customer with the passed SKU and merge it with the attributes
        if ($entity = $this->loadCustomerByEmailAndWebsiteId($attr[MemberNames::EMAIL], $attr[MemberNames::WEBSITE_ID])) {
            return $this->mergeEntity($entity, $attr);
        }

        // otherwise simply return the attributes
        return $attr;
    }
protected function initializeCustomer(array $attr)
    {

        // load the customer with the passed SKU and merge it with the attributes
        if ($entity = $this->loadCustomerByEmailAndWebsiteId($attr[MemberNames::EMAIL], $attr[MemberNames::WEBSITE_ID])) {
            return $this->mergeEntity($entity, $attr);
        }

        // otherwise simply return the attributes
        return $attr;
    }
protected function initializeCustomer ( array $ attr ) { // load the customer with the passed SKU and merge it with the attributes if ( $ entity = $ this -> loadCustomerByEmailAndWebsiteId ( $ attr [ MemberNames :: EMAIL ] , $ attr [ MemberNames :: WEBSITE_ID ] ) ) { return $ this -> mergeEntity ( $ entity , $ attr ) ; } // otherwise simply return the attributes return $ attr ; }
Initialize the customer with the passed attributes and returns an instance.

@param array $attr The customer attributes

@return array The initialized customer
Initialize the customer with the passed attributes and returns an instance .