Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Aug 3, 2019
1 parent e91e888 commit 7a10283
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/Adapter/AdapterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ interface AdapterInterface
{
/**
* Send the request and return the response.
*
* @param RequestInterface $request
* @param RequestInterface $request
* @return ResponseInterface
*/
public function send(RequestInterface $request);
Expand Down
2 changes: 0 additions & 2 deletions src/Adapter/Guzzle/GuzzleAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ class GuzzleAdapter implements AdapterInterface
{
/**
* The Guzzle client instance.
*
* @var Client
*/
protected $client;

/**
* Construct a Guzzle based HTTP adapter.
*
* @param Client $client
*/
public function __construct(Client $client = null)
Expand Down
1 change: 0 additions & 1 deletion src/Filter/FilterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface FilterInterface
{
/**
* Apply filter to request and/or response.
*
* @param RequestInterface $request
* @param ResponseInterface $response
* @param callable $next
Expand Down
4 changes: 2 additions & 2 deletions tests/Proxy/Filter/RemoveEncodingFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function setUp()
*/
public function filter_removes_transfer_encoding()
{
$request = new Request;
$request = new Request();
$response = new Response('php://memory', 200, [RemoveEncodingFilter::TRANSFER_ENCODING => 'foo']);
$next = function () use ($response) {
return $response;
Expand All @@ -39,7 +39,7 @@ public function filter_removes_transfer_encoding()
*/
public function filter_removes_content_encoding()
{
$request = new Request;
$request = new Request();
$response = new Response('php://memory', 200, [RemoveEncodingFilter::TRANSFER_ENCODING => 'foo']);
$next = function ($request, $response) {
return $response;
Expand Down
4 changes: 2 additions & 2 deletions tests/Proxy/Filter/RemoveLocationFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function setUp()
*/
public function filter_removes_location()
{
$request = new Request;
$request = new Request();
$response = new Response('php://memory', 200, [RemoveLocationFilter::LOCATION => 'http://www.example.com']);
$next = function () use ($response) {
return $response;
Expand All @@ -39,7 +39,7 @@ public function filter_removes_location()
*/
public function filter_adds_location_as_xheader()
{
$request = new Request;
$request = new Request();
$response = new Response('php://memory', 200, [RemoveLocationFilter::LOCATION => 'http://www.example.com']);
$next = function () use ($response) {
return $response;
Expand Down

0 comments on commit 7a10283

Please sign in to comment.