Browse Source

Fix spelling comment

LifeOrYou 8 years ago
parent
commit
45269eff3a
2 changed files with 8 additions and 5 deletions
  1. 5 4
      src/Mailer/Email.php
  2. 3 1
      tests/TestCase/Mailer/EmailTest.php

+ 5 - 4
src/Mailer/Email.php

@@ -836,9 +836,9 @@ class Email implements JsonSerializable, Serializable
     }
 
     /**
-     * TransportCharset setter.
+     * TransferEncoding setter.
      *
-     * @param string|null $encoding Character set.
+     * @param string|null $encoding Encoding set.
      * @return $this
      */
     public function setTransferEncoding($encoding) {
@@ -848,7 +848,7 @@ class Email implements JsonSerializable, Serializable
     }
 
     /**
-     * TransportCharset getter.
+     * TransferEncoding getter.
      *
      * @return string|null Encoding
      */
@@ -2685,7 +2685,8 @@ class Email implements JsonSerializable, Serializable
     }
 
     /**
-     * Return the Content-Transfer Encoding value based on the set charset
+     * Return the Content-Transfer Encoding value based
+     * on the set transferEncoding or set charset.
      *
      * @return string
      */

+ 3 - 1
tests/TestCase/Mailer/EmailTest.php

@@ -2499,9 +2499,11 @@ class EmailTest extends TestCase
 
     /**
      * Test transferEncoding
+     *
+     * @return void
      */
     public function testTransferEncoding(){
-        // Test new transport encoding
+        // Test new transfer encoding
         $this->Email->setTransferEncoding('quoted-printable');
         $this->assertSame($this->Email->getTransferEncoding(), 'quoted-printable');
         $this->assertSame($this->Email->getContentTransferEncoding(), 'quoted-printable');