Remove parameter should be passed reference
This commit is contained in:
@@ -89,7 +89,7 @@ public function addSignatureMethod(SignatureMethodInterface $signature_method)
|
||||
*
|
||||
* @return JacobKiers\OAuth\Token\TokenInterface
|
||||
*/
|
||||
public function fetchRequestToken(RequestInterface &$request)
|
||||
public function fetchRequestToken(RequestInterface $request)
|
||||
{
|
||||
$this->getVersion($request);
|
||||
|
||||
@@ -115,7 +115,7 @@ public function fetchRequestToken(RequestInterface &$request)
|
||||
*
|
||||
* @return JacobKiers\OAuth\Token\TokenInterface
|
||||
*/
|
||||
public function fetchAccessToken(RequestInterface &$request)
|
||||
public function fetchAccessToken(RequestInterface $request)
|
||||
{
|
||||
$this->getVersion($request);
|
||||
|
||||
@@ -139,7 +139,7 @@ public function fetchAccessToken(RequestInterface &$request)
|
||||
*
|
||||
* @return array Consumer and Token
|
||||
*/
|
||||
public function verifyRequest(RequestInterface &$request)
|
||||
public function verifyRequest(RequestInterface $request)
|
||||
{
|
||||
$this->getVersion($request);
|
||||
$consumer = $this->getConsumer($request);
|
||||
@@ -159,7 +159,7 @@ public function verifyRequest(RequestInterface &$request)
|
||||
*
|
||||
* @throws JacobKiers\OAuth\OAuthException
|
||||
*/
|
||||
private function getVersion(RequestInterface &$request)
|
||||
private function getVersion(RequestInterface $request)
|
||||
{
|
||||
$version = $request->getOAuthVersion();
|
||||
if (!$version) {
|
||||
|
@@ -49,7 +49,7 @@ public function getName()
|
||||
* Either way should return a string representation of the certificate
|
||||
*
|
||||
*/
|
||||
abstract protected function fetchPublicCert(&$request);
|
||||
abstract protected function fetchPublicCert($request);
|
||||
|
||||
/**
|
||||
* Up to the SP to implement this lookup of keys. Possible ideas are:
|
||||
@@ -57,7 +57,7 @@ abstract protected function fetchPublicCert(&$request);
|
||||
*
|
||||
* Either way should return a string representation of the certificate
|
||||
*/
|
||||
abstract protected function fetchPrivateCert(&$request);
|
||||
abstract protected function fetchPrivateCert($request);
|
||||
|
||||
/**
|
||||
* Build up the signature.
|
||||
|
Reference in New Issue
Block a user