Browse Source

Fix lint error

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

+ 4 - 2
src/Mailer/Email.php

@@ -841,7 +841,8 @@ class Email implements JsonSerializable, Serializable
      * @param string|null $encoding Encoding set.
      * @return $this
      */
-    public function setTransferEncoding($encoding) {
+    public function setTransferEncoding($encoding)
+    {
         $this->transferEncoding = $encoding;
 
         return $this;
@@ -852,7 +853,8 @@ class Email implements JsonSerializable, Serializable
      *
      * @return string|null Encoding
      */
-    public function getTransferEncoding() {
+    public function getTransferEncoding()
+    {
         return $this->transferEncoding;
     }
 

+ 4 - 2
tests/TestCase/Mailer/EmailTest.php

@@ -96,7 +96,8 @@ class TestEmail extends Email
      *
      * @return string
      */
-    public function getContentTransferEncoding() {
+    public function getContentTransferEncoding()
+    {
         return $this->_getContentTransferEncoding();
     }
 
@@ -2502,7 +2503,8 @@ class EmailTest extends TestCase
      *
      * @return void
      */
-    public function testTransferEncoding(){
+    public function testTransferEncoding()
+    {
         // Test new transfer encoding
         $this->Email->setTransferEncoding('quoted-printable');
         $this->assertSame($this->Email->getTransferEncoding(), 'quoted-printable');