Skip to content
Permalink
Browse files

Fix PHPCS errors.

  • Loading branch information...
markstory committed Sep 24, 2016
1 parent 4e1b066 commit 1d39a9ded031f7a200ed51a5e1a8a91aef9632aa
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Network/Request.php
@@ -955,6 +955,7 @@ protected function normalizeHeaderName($name)
if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'])) {
$name = 'HTTP_' . $name;
}
return $name;
}
@@ -972,6 +973,7 @@ protected function normalizeHeaderName($name)
public function header($name)
{
$name = $this->normalizeHeaderName($name);
return $this->env($name);
}
@@ -1003,6 +1005,7 @@ public function getHeaders()
$headers[$name] = (array)$value;
}
}
return $headers;
}
@@ -1015,6 +1018,7 @@ public function getHeaders()
public function hasHeader($name)
{
$name = $this->normalizeHeaderName($name);
return array_key_exists($name, $this->_environment);
}
@@ -1034,6 +1038,7 @@ public function getHeader($name)
if (isset($this->_environment[$name])) {
return (array)$this->_environment[$name];
}
return [];
}
@@ -1048,6 +1053,7 @@ public function getHeader($name)
public function getHeaderLine($name)
{
$value = $this->getHeader($name);
return implode(', ', $value);
}

0 comments on commit 1d39a9d

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