Skip to content

Commit

Permalink
[+]: fix some more php-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Oct 24, 2016
1 parent f0ae336 commit 19e93ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/classes/Swift/Mime/MimePart.php
Expand Up @@ -71,7 +71,7 @@ public function __construct(Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEnc
* @param string $contentType optional
* @param string $charset optional
*
* @return Swift_Mime_MimePart
* @return $this
*/
public function setBody($body, $contentType = null, $charset = null)
{
Expand Down Expand Up @@ -103,7 +103,7 @@ public function getCharset()
*
* @param string $charset
*
* @return Swift_Mime_MimePart
* @return $this
*/
public function setCharset($charset)
{
Expand Down Expand Up @@ -135,7 +135,7 @@ public function getFormat()
*
* @param string $format
*
* @return Swift_Mime_MimePart
* @return $this
*/
public function setFormat($format)
{
Expand All @@ -160,7 +160,7 @@ public function getDelSp()
*
* @param bool $delsp
*
* @return Swift_Mime_MimePart
* @return $this
*/
public function setDelSp($delsp = true)
{
Expand Down
9 changes: 6 additions & 3 deletions tests/unit/Swift/Mime/SimpleMessageTest.php
@@ -1,5 +1,8 @@
<?php

/**
* Class Swift_Mime_SimpleMessageTest
*/
class Swift_Mime_SimpleMessageTest extends Swift_Mime_MimePartTest
{
public function testNestingLevelIsSubpart()
Expand Down Expand Up @@ -91,7 +94,7 @@ public function testFluidInterface()
->setTo(array('chris@site.tld', 'mark@site.tld'))
->setCc('john@somewhere.tld')
->setBcc(array('one@site', 'two@site' => 'Two'))
->setPriority(4)
->setPriority($message::PRIORITY_LOW)
->setReadReceiptTo('a@b')
->attach($child)
->detach($child)
Expand Down Expand Up @@ -843,7 +846,7 @@ public function testPriorityIsSetInHeader()
$this->_createEncoder(), $this->_createCache()
);

$message->setPriority(5);
$message->setPriority($message::PRIORITY_LOWEST);
}

public function testPriorityHeaderIsAddedIfNoneSet()
Expand All @@ -861,7 +864,7 @@ public function testPriorityHeaderIsAddedIfNoneSet()
$this->_createCache()
);

$message->setPriority(4);
$message->setPriority($message::PRIORITY_LOW);
}

public function testReadReceiptAddressReadFromHeader()
Expand Down

0 comments on commit 19e93ce

Please sign in to comment.