Skip to content

Commit

Permalink
Fix PHPCS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Nov 22, 2017
1 parent a465120 commit e539559
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/RequestBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class RequestBridge
final public static function toOAuth2(ServerRequestInterface $request)
{
$contents = $request->getBody()->getContents();
$request->getBody()->rewind();
$request->getBody()->rewind();

return new OAuth2\Request(
(array)$request->getQueryParams(),
(array)$request->getParsedBody(),
Expand Down
5 changes: 2 additions & 3 deletions tests/RequestBridgeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ public function toOAuth2BodyContentsOfRequestPreserved()

$oauth2Request = RequestBridge::toOAuth2($psr7Request);

$this->assertSame('foo', $psr7Request->getBody()->getContents());
$this->assertSame('foo', $oauth2Request->getContent());
$this->assertSame('foo', $psr7Request->getBody()->getContents());
$this->assertSame('foo', $oauth2Request->getContent());
}

}

0 comments on commit e539559

Please sign in to comment.