Skip to content

Commit

Permalink
Fix PHPCS errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 24, 2016
1 parent 4e1b066 commit 1d39a9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Network/Request.php
Expand Up @@ -955,6 +955,7 @@ protected function normalizeHeaderName($name)
if (!in_array($name, ['CONTENT_LENGTH', 'CONTENT_TYPE'])) {
$name = 'HTTP_' . $name;
}

return $name;
}

Expand All @@ -972,6 +973,7 @@ protected function normalizeHeaderName($name)
public function header($name)
{
$name = $this->normalizeHeaderName($name);

return $this->env($name);
}

Expand Down Expand Up @@ -1003,6 +1005,7 @@ public function getHeaders()
$headers[$name] = (array)$value;
}
}

return $headers;
}

Expand All @@ -1015,6 +1018,7 @@ public function getHeaders()
public function hasHeader($name)
{
$name = $this->normalizeHeaderName($name);

return array_key_exists($name, $this->_environment);
}

Expand All @@ -1034,6 +1038,7 @@ public function getHeader($name)
if (isset($this->_environment[$name])) {
return (array)$this->_environment[$name];
}

return [];
}

Expand All @@ -1048,6 +1053,7 @@ public function getHeader($name)
public function getHeaderLine($name)
{
$value = $this->getHeader($name);

return implode(', ', $value);
}

Expand Down

0 comments on commit 1d39a9d

Please sign in to comment.