original_string: private function checkHeadersForInjection(\sb\Email $email)
      {
  
          if (\preg_match("~\r|:~i", $email->to) || preg_match("~\r|:~i", $email->from)) {
              return true;
          }
  
          return false;
      }
code: private function checkHeadersForInjection(\sb\Email $email)
      {
  
          if (\preg_match("~\r|:~i", $email->to) || preg_match("~\r|:~i", $email->from)) {
              return true;
          }
  
          return false;
      }
code_tokens: private function checkHeadersForInjection ( \ sb \ Email $ email ) { if ( \ preg_match ( "~\r|:~i" , $ email -> to ) || preg_match ( "~\r|:~i" , $ email -> from ) ) { return true ; } return false ; }
docstring: Checks email for injections in from and to addr
  
  @param  \sb\Email $email
  @return boolean
docstring_tokens: Checks email for injections in from and to addr