original_string: public static function processResult($result, $to = '', $cc = '', $bcc = '', $subject = '', $body = '', $from = '')
      {
          self::$success = $result;
  
          if (YII_DEBUG) {
  
              $msg = ' - Sending email. ';
              //native PHPMailer's way to pass results to [[doCallback()]] function is a little bit strange
              $msg .= (!empty($to)) ? ('To: ' . (is_array($to) ? implode(';', $to) : $to) . '.') : '';
              $msg .= (!empty($cc)) ? ('Cc: ' . (is_array($cc) ? implode(';', $cc) : $cc) . '.') : '';
              $msg .= (!empty($bcc)) ? ('Bcc: ' . (is_array($bcc) ? implode(';', $bcc) : $bcc) . '.') : '';
  
              $msg .= ' Subject: "' . $subject . '"';
              if ($result) {
                  Yii::info('OK' . $msg, __METHOD__);
              } else {
                  Yii::warning('FAILED' . $msg, __METHOD__);
              }
          }
      }
code: public static function processResult($result, $to = '', $cc = '', $bcc = '', $subject = '', $body = '', $from = '')
      {
          self::$success = $result;
  
          if (YII_DEBUG) {
  
              $msg = ' - Sending email. ';
              //native PHPMailer's way to pass results to [[doCallback()]] function is a little bit strange
              $msg .= (!empty($to)) ? ('To: ' . (is_array($to) ? implode(';', $to) : $to) . '.') : '';
              $msg .= (!empty($cc)) ? ('Cc: ' . (is_array($cc) ? implode(';', $cc) : $cc) . '.') : '';
              $msg .= (!empty($bcc)) ? ('Bcc: ' . (is_array($bcc) ? implode(';', $bcc) : $bcc) . '.') : '';
  
              $msg .= ' Subject: "' . $subject . '"';
              if ($result) {
                  Yii::info('OK' . $msg, __METHOD__);
              } else {
                  Yii::warning('FAILED' . $msg, __METHOD__);
              }
          }
      }
code_tokens: public static function processResult ( $ result , $ to = '' , $ cc = '' , $ bcc = '' , $ subject = '' , $ body = '' , $ from = '' ) { self :: $ success = $ result ; if ( YII_DEBUG ) { $ msg = ' - Sending email. ' ; //native PHPMailer's way to pass results to [[doCallback()]] function is a little bit strange $ msg .= ( ! empty ( $ to ) ) ? ( 'To: ' . ( is_array ( $ to ) ? implode ( ';' , $ to ) : $ to ) . '.' ) : '' ; $ msg .= ( ! empty ( $ cc ) ) ? ( 'Cc: ' . ( is_array ( $ cc ) ? implode ( ';' , $ cc ) : $ cc ) . '.' ) : '' ; $ msg .= ( ! empty ( $ bcc ) ) ? ( 'Bcc: ' . ( is_array ( $ bcc ) ? implode ( ';' , $ bcc ) : $ bcc ) . '.' ) : '' ; $ msg .= ' Subject: "' . $ subject . '"' ; if ( $ result ) { Yii :: info ( 'OK' . $ msg , __METHOD__ ) ; } else { Yii :: warning ( 'FAILED' . $ msg , __METHOD__ ) ; } } }
docstring: This is a callback function to retrieve result returned by PHPMailer
  
  @var bool    $result        result of the send action
  @var string  $to            email address of the recipient
  @var string  $cc            cc email addresses
  @var string  $bcc           bcc email addresses
  @var string  $subject       the subject
  @var string  $body          the email body
  @var string  $from          email address of sender
docstring_tokens: This is a callback function to retrieve result returned by PHPMailer