original_string: public function registeredToCustomer(array $user)
      {
          $store = $this->store->get($user['store_id']);
          $options = $this->store->getConfig(null, $store);
          $store_name = $this->store->getTranslation('title', $this->translation->getLangcode(), $store);
          $base = $this->store->getUrl($store);
  
          $vars = array(
              '@store' => $store_name,
              '@name' => $user['name'],
              '@order' => "$base/account/{$user['user_id']}",
              '@edit' => "$base/account/{$user['user_id']}/edit",
              '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
          );
  
          $subject = $this->translation->text('Account details for @name on @store', $vars);
          $message = $this->translation->text("Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order", $vars);
          $message .= $this->getSignature($options);
  
          $options['from'] = $this->store->getConfig('email.0', $store);
          return array($user['email'], $subject, $message, $options);
      }
code: public function registeredToCustomer(array $user)
      {
          $store = $this->store->get($user['store_id']);
          $options = $this->store->getConfig(null, $store);
          $store_name = $this->store->getTranslation('title', $this->translation->getLangcode(), $store);
          $base = $this->store->getUrl($store);
  
          $vars = array(
              '@store' => $store_name,
              '@name' => $user['name'],
              '@order' => "$base/account/{$user['user_id']}",
              '@edit' => "$base/account/{$user['user_id']}/edit",
              '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
          );
  
          $subject = $this->translation->text('Account details for @name on @store', $vars);
          $message = $this->translation->text("Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order", $vars);
          $message .= $this->getSignature($options);
  
          $options['from'] = $this->store->getConfig('email.0', $store);
          return array($user['email'], $subject, $message, $options);
      }
code_tokens: public function registeredToCustomer ( array $ user ) { $ store = $ this -> store -> get ( $ user [ 'store_id' ] ) ; $ options = $ this -> store -> getConfig ( null , $ store ) ; $ store_name = $ this -> store -> getTranslation ( 'title' , $ this -> translation -> getLangcode ( ) , $ store ) ; $ base = $ this -> store -> getUrl ( $ store ) ; $ vars = array ( '@store' => $ store_name , '@name' => $ user [ 'name' ] , '@order' => "$base/account/{$user['user_id']}" , '@edit' => "$base/account/{$user['user_id']}/edit" , '@status' => empty ( $ user [ 'status' ] ) ? $ this -> translation -> text ( 'Inactive' ) : $ this -> translation -> text ( 'Active' ) ) ; $ subject = $ this -> translation -> text ( 'Account details for @name on @store' , $ vars ) ; $ message = $ this -> translation -> text ( "Thank you for registering on @store\r\n\r\nAccount status: @status\r\n\r\nEdit account: @edit\r\nView orders: @order" , $ vars ) ; $ message .= $ this -> getSignature ( $ options ) ; $ options [ 'from' ] = $ this -> store -> getConfig ( 'email.0' , $ store ) ; return array ( $ user [ 'email' ] , $ subject , $ message , $ options ) ; }
docstring: Sent to the user when his account has been created
  @param array $user
  @return array
docstring_tokens: Sent to the user when his account has been created