Skip to content
Permalink
Browse files

Fix PHPCS errors.

  • Loading branch information...
markstory committed Dec 5, 2016
1 parent 986efd0 commit 21d2fa352e0b8ea7cd20da30565cd6d04f9aa51c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Network/Response.php
@@ -1237,6 +1237,7 @@ public function withCache($since, $time = '+1 day')
if (!is_int($time)) {
$time = strtotime($time);
}
return $this->withHeader('Date', gmdate("D, j M Y G:i:s ", time()) . 'GMT')
->withModified($since)
->withExpires($time)
@@ -1503,6 +1504,7 @@ public function expires($time = null)
public function withExpires($time)
{
$date = $this->_getUTCDate($time);
return $this->withHeader('Expires', $date->format('D, j M Y H:i:s') . ' GMT');
}
@@ -1553,6 +1555,7 @@ public function modified($time = null)
public function withModified($time)
{
$date = $this->_getUTCDate($time);
return $this->withHeader('Last-Modified', $date->format('D, j M Y H:i:s') . ' GMT');
}

0 comments on commit 21d2fa3

Please sign in to comment.
You can’t perform that action at this time.