Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 5459e34

Browse files
committed
Fix cs
1 parent c4bf1ab commit 5459e34

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Client.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function sanitizeWithTrace(RequestInterface $request)
106106
}
107107

108108
/**
109-
* Get specific curl options for Zend Curl Adapter
109+
* Get specific curl options for Zend Curl Adapter.
110110
*
111111
* @param RequestInterface $request
112112
*
@@ -117,17 +117,16 @@ private function sanitizeWithCurl(RequestInterface $request)
117117
if ($this->client->getAdapter() instanceof ZendClient\Adapter\Curl && !in_array($request->getMethod(), [
118118
'POST',
119119
'PUT',
120-
'PATCH'
120+
'PATCH',
121121
], true)) {
122-
123122
$request = $request->withHeader('Content-Length', '0');
124123
}
125124

126125
return $request;
127126
}
128127

129128
/**
130-
* Return cURL constant for specified HTTP version
129+
* Return cURL constant for specified HTTP version.
131130
*
132131
* @param string $requestVersion
133132
*

tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract protected function getZendAdapter();
2222
protected function shouldBeSkip($method, $uri, array $headers, $body)
2323
{
2424
if ($method === 'TRACE' && strlen($body) > 0) {
25-
return "Zend Http Adapter does not work well with TRACE method and a BODY";
25+
return 'Zend Http Adapter does not work well with TRACE method and a BODY';
2626
}
2727

2828
return false;

tests/CurlClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function getZendAdapter()
1414
protected function shouldBeSkip($method, $uri, array $headers, $body)
1515
{
1616
if (strlen($body) !== 0 && !in_array($method, ['POST', 'PUT', 'PATCH'], true)) {
17-
return "Zend Curl Adapter does not support body in other method than POST, PUT or PATCH";
17+
return 'Zend Curl Adapter does not support body in other method than POST, PUT or PATCH';
1818
}
1919

2020
return parent::shouldBeSkip($method, $uri, $headers, $body);

0 commit comments

Comments
 (0)