original_string: public function sendNotificationEmail($mail, $from=null)
      {
          $templateName = 'CoreBundle:Email:notification.email.html.twig';
  
          $context = array(
              'mail' => $mail
          );
          
          if(is_null($from)){
              $this->sendMessage(
                  $templateName, 
                  $context,  
                  $mail->getSender(),
                  $mail->getRecipient(),
                  $mail->getAttachment()
                  );
          }else{
              $this->sendMessage(
                  $templateName, 
                  $context,  
                  $from,
                  $mail->getRecipient(),
                  $mail->getAttachment()
                  );
          }
          
      }
code: public function sendNotificationEmail($mail, $from=null)
      {
          $templateName = 'CoreBundle:Email:notification.email.html.twig';
  
          $context = array(
              'mail' => $mail
          );
          
          if(is_null($from)){
              $this->sendMessage(
                  $templateName, 
                  $context,  
                  $mail->getSender(),
                  $mail->getRecipient(),
                  $mail->getAttachment()
                  );
          }else{
              $this->sendMessage(
                  $templateName, 
                  $context,  
                  $from,
                  $mail->getRecipient(),
                  $mail->getAttachment()
                  );
          }
          
      }
code_tokens: public function sendNotificationEmail ( $ mail , $ from = null ) { $ templateName = 'CoreBundle:Email:notification.email.html.twig' ; $ context = array ( 'mail' => $ mail ) ; if ( is_null ( $ from ) ) { $ this -> sendMessage ( $ templateName , $ context , $ mail -> getSender ( ) , $ mail -> getRecipient ( ) , $ mail -> getAttachment ( ) ) ; } else { $ this -> sendMessage ( $ templateName , $ context , $ from , $ mail -> getRecipient ( ) , $ mail -> getAttachment ( ) ) ; } }
docstring: Send an email from notification
  
  @param MailLog $mail
  
  @return void
docstring_tokens: Send an email from notification