original_string: public function subject($subject)
      {
          $name = Config::get('name');
          $subject = '[' . $name . '] ' . $subject;
          /**
           * strange subject encode error
           * occurred when there's both chinese and english
           * solution see: https://github.com/swiftmailer/swiftmailer/issues/665
           */
          $subject = '=?utf-8?B?'.base64_encode($subject).'?=';
          $this->message->setSubject($subject);
          return $this;
      }
code: public function subject($subject)
      {
          $name = Config::get('name');
          $subject = '[' . $name . '] ' . $subject;
          /**
           * strange subject encode error
           * occurred when there's both chinese and english
           * solution see: https://github.com/swiftmailer/swiftmailer/issues/665
           */
          $subject = '=?utf-8?B?'.base64_encode($subject).'?=';
          $this->message->setSubject($subject);
          return $this;
      }
code_tokens: public function subject ( $ subject ) { $ name = Config :: get ( 'name' ) ; $ subject = '[' . $ name . '] ' . $ subject ; /**
           * strange subject encode error
           * occurred when there's both chinese and english
           * solution see: https://github.com/swiftmailer/swiftmailer/issues/665
           */ $ subject = '=?utf-8?B?' . base64_encode ( $ subject ) . '?=' ; $ this -> message -> setSubject ( $ subject ) ; return $ this ; }
docstring: set message subject
  
  @param string $subject
  @return $this
docstring_tokens: set message subject