Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'patch-1' of https://github.com/cebe/zf2 into feature/ht…
Browse files Browse the repository at this point in the history
…tp-exceptions
  • Loading branch information
Show file tree
Hide file tree
Showing 53 changed files with 184 additions and 184 deletions.
2 changes: 1 addition & 1 deletion src/Header/Accept.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept') {
throw new Exception\InvalidArgumentException('Invalid header line for accept header string');
throw new Exception\InvalidArgumentException('Invalid header line for accept header string: "' . $name . '"');
}

// process multiple accept values
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AcceptCharset.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept-charset') {
throw new Exception\InvalidArgumentException('Invalid header line for accept header string');
throw new Exception\InvalidArgumentException('Invalid header line for accept header string: "' . $name . '"');
}

$valueParts = explode(';', $value, 2);
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AcceptEncoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept-encoding') {
throw new Exception\InvalidArgumentException('Invalid header line for accept header string');
throw new Exception\InvalidArgumentException('Invalid header line for accept header string: "' . $name . '"');
}

// @todo implementation details
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AcceptLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept-language') {
throw new Exception\InvalidArgumentException('Invalid header line for Accept-Language string');
throw new Exception\InvalidArgumentException('Invalid header line for Accept-Language string: "' . $name . '"');
}

// @todo implementation details
Expand Down
2 changes: 1 addition & 1 deletion src/Header/AcceptRanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'accept-ranges') {
throw new Exception\InvalidArgumentException('Invalid header line for Accept-Ranges string');
throw new Exception\InvalidArgumentException('Invalid header line for Accept-Ranges string: "' . $name . '"');
}

$header->rangeUnit = trim($value);
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Age.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'age') {
throw new Exception\InvalidArgumentException('Invalid header line for Age string');
throw new Exception\InvalidArgumentException('Invalid header line for Age string: "' . $name . '"');
}

$header->deltaSeconds = $value;
Expand Down
2 changes: 1 addition & 1 deletion src/Header/Allow.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'allow') {
throw new Exception\InvalidArgumentException('Invalid header line for Allow string');
throw new Exception\InvalidArgumentException('Invalid header line for Allow string: "' . $name . '"');
}

foreach (explode(',', $value) as $method) {
Expand Down
8 changes: 4 additions & 4 deletions src/Header/AuthenticationInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'authentication-info') {
throw new Exception\InvalidArgumentException('Invalid header line for Authentication-Info string');
throw new Exception\InvalidArgumentException('Invalid header line for Authentication-Info string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Authentication-Info: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/Authorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'authorization') {
throw new Exception\InvalidArgumentException('Invalid header line for Authorization string');
throw new Exception\InvalidArgumentException('Invalid header line for Authorization string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Authorization: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/CacheControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'cache-control') {
throw new Exception\InvalidArgumentException('Invalid header line for Cache-Control string');
throw new Exception\InvalidArgumentException('Invalid header line for Cache-Control string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Cache-Control: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'connection') {
throw new Exception\InvalidArgumentException('Invalid header line for Connection string');
throw new Exception\InvalidArgumentException('Invalid header line for Connection string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Connection: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentDisposition.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-disposition') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Disposition string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Disposition string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Disposition: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentEncoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-encoding') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Encoding string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Encoding string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Encoding: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentLanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-language') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Language string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Language string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Language: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentLength.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-length') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Length string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Length string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Length: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-location') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Location string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Location string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Location: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentMD5.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-md5') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-MD5 string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-MD5 string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-MD5: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-range') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Range string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Range string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Range: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/ContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'content-type') {
throw new Exception\InvalidArgumentException('Invalid header line for Content-Type string');
throw new Exception\InvalidArgumentException('Invalid header line for Content-Type string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Content-Type: ' . $this->getFieldValue();
}

}
2 changes: 1 addition & 1 deletion src/Header/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'cookie') {
throw new Exception\InvalidArgumentException('Invalid header line for Server string');
throw new Exception\InvalidArgumentException('Invalid header line for Server string: "' . $name . '"');
}

$nvPairs = preg_split('#;\s*#', $value);
Expand Down
8 changes: 4 additions & 4 deletions src/Header/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'date') {
throw new Exception\InvalidArgumentException('Invalid header line for Date string');
throw new Exception\InvalidArgumentException('Invalid header line for Date string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Date: ' . $this->getFieldValue();
}

}
8 changes: 4 additions & 4 deletions src/Header/Etag.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ public static function fromString($headerLine)

// check to ensure proper header type for this factory
if (strtolower($name) !== 'etag') {
throw new Exception\InvalidArgumentException('Invalid header line for Etag string');
throw new Exception\InvalidArgumentException('Invalid header line for Etag string: "' . $name . '"');
}

// @todo implementation details
$header->value= $value;
$header->value = $value;

return $header;
}

Expand All @@ -40,5 +40,5 @@ public function toString()
{
return 'Etag: ' . $this->getFieldValue();
}

}
Loading

0 comments on commit c52a7f4

Please sign in to comment.