original_string: public function connectUserWithExistingCustomer($user, $customer)
      {
          $result = false;
          if ($user->getEmail() === $customer->getEmail()) {
              \call_user_func(
                  [$customer->getAttribute(), 'set' . ucfirst($user->getType()) . 'Identity'],
                  $user->getId()
              );
              $result = $this->udapteCustomerAttributes($customer);
          }
  
          return $result;
      }
code: public function connectUserWithExistingCustomer($user, $customer)
      {
          $result = false;
          if ($user->getEmail() === $customer->getEmail()) {
              \call_user_func(
                  [$customer->getAttribute(), 'set' . ucfirst($user->getType()) . 'Identity'],
                  $user->getId()
              );
              $result = $this->udapteCustomerAttributes($customer);
          }
  
          return $result;
      }
code_tokens: public function connectUserWithExistingCustomer ( $ user , $ customer ) { $ result = false ; if ( $ user -> getEmail ( ) === $ customer -> getEmail ( ) ) { \ call_user_func ( [ $ customer -> getAttribute ( ) , 'set' . ucfirst ( $ user -> getType ( ) ) . 'Identity' ] , $ user -> getId ( ) ) ; $ result = $ this -> udapteCustomerAttributes ( $ customer ) ; } return $ result ; }
docstring: Connects a user with an existing customer
  
  @param User $user
  @param Customer $customer
  
  @return Customer|false Customer if connecting was successful, false if not (e.g. email adresses are not equal)
docstring_tokens: Connects a user with an existing customer