Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Header/GenericHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function setFieldValue($fieldValue)

public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
{
if (HeaderInterface::FORMAT_ENCODED) {
if (HeaderInterface::FORMAT_ENCODED === $format) {
return HeaderWrap::wrap($this->fieldValue, $this);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Header/Subject.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getFieldName()

public function getFieldValue($format = HeaderInterface::FORMAT_RAW)
{
if (HeaderInterface::FORMAT_ENCODED) {
if (HeaderInterface::FORMAT_ENCODED === $format) {
return HeaderWrap::wrap($this->subject, $this);
}

Expand Down
2 changes: 1 addition & 1 deletion test/Header/SubjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function testHeaderFolding()
$subject->setSubject($string);

$expected = wordwrap($string, 78, "\r\n ");
$test = $subject->getFieldValue();
$test = $subject->getFieldValue(Header\HeaderInterface::FORMAT_ENCODED);
$this->assertEquals($expected, $test);
}
}

0 comments on commit 51b08b5

Please sign in to comment.