Skip to content

Commit

Permalink
Fix phpcs errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 18, 2016
1 parent 5ff002e commit a7cf173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Network/Response.php
Expand Up @@ -1025,9 +1025,9 @@ public function type($contentType = null)
if (strpos($contentType, '/') === false) {
return false;
}

$this->_contentType = $contentType;
$this->_setContentType();

return $contentType;
}

Expand Down Expand Up @@ -1121,9 +1121,9 @@ public function charset($charset = null)
if ($charset === null) {
return $this->_charset;
}

$this->_charset = $charset;
$this->_setContentType();

return $this->_charset;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Network/ResponseTest.php
Expand Up @@ -712,7 +712,7 @@ public function testModified()
$time = new \DateTime('+1 day', new \DateTimeZone('UTC'));
$response->modified('+1 day');
$this->assertEquals($time->format($format) . ' GMT', $response->modified());
$this->assertEquals($time->format($format). ' GMT', $response->getHeaderLine('Last-Modified'));
$this->assertEquals($time->format($format) . ' GMT', $response->getHeaderLine('Last-Modified'));
}

/**
Expand Down

0 comments on commit a7cf173

Please sign in to comment.