X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fbrowser-kit%2FResponse.php;h=766a87e4d6d624970f511f390cbc6121cb12685b;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=984442fbe3691aeb566e7c7c61e7b7bc10226a5d;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/browser-kit/Response.php b/vendor/symfony/browser-kit/Response.php index 984442fbe..766a87e4d 100644 --- a/vendor/symfony/browser-kit/Response.php +++ b/vendor/symfony/browser-kit/Response.php @@ -12,8 +12,6 @@ namespace Symfony\Component\BrowserKit; /** - * Response object. - * * @author Fabien Potencier */ class Response @@ -23,8 +21,6 @@ class Response protected $headers; /** - * Constructor. - * * The headers array is a set of key/value pairs. If a header is present multiple times * then the value is an array of all the values. * @@ -48,7 +44,7 @@ class Response { $headers = ''; foreach ($this->headers as $name => $value) { - if (is_string($value)) { + if (\is_string($value)) { $headers .= $this->buildHeader($name, $value); } else { foreach ($value as $headerValue) { @@ -117,10 +113,10 @@ class Response foreach ($this->headers as $key => $value) { if (str_replace('-', '_', strtolower($key)) === $normalizedHeader) { if ($first) { - return is_array($value) ? (count($value) ? $value[0] : '') : $value; + return \is_array($value) ? (\count($value) ? $value[0] : '') : $value; } - return is_array($value) ? $value : array($value); + return \is_array($value) ? $value : array($value); } }