Jiří Petřek 13 anni fa
parent
commit
5ac0d070b7
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/Monolog/Handler/NativeMailerHandler.php

+ 4 - 4
src/Monolog/Handler/NativeMailerHandler.php

@@ -23,7 +23,7 @@ class NativeMailerHandler extends MailHandler
     protected $to;
     protected $subject;
     protected $headers = array(
-        "Content-type: text-plain; charset=utf-8"
+        'Content-type: text-plain; charset=utf-8'
     );
 
     /**
@@ -31,18 +31,18 @@ class NativeMailerHandler extends MailHandler
      * @param string $subject The subject of the mail
      * @param string $from The sender of the mail
      * @param integer $level The minimum logging level at which this handler will be triggered
-     * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
+     * @param boolean $bubble Whether the messages that are handled can bubble up the stack or not
      */
     public function __construct($to, $subject, $from, $level = Logger::ERROR, $bubble = true)
     {
         parent::__construct($level, $bubble);
         $this->to = is_array($to) ? $to : array($to);
         $this->subject = $subject;
-        $this->headers[] = sprintf("From: %s", $from);
+        $this->headers[] = sprintf('From: %s', $from);
     }
 
     /**
-     * @param string|array $header
+     * @param string|array $header Custom added headers
      */
     public function addHeader($headers)
     {