Remove parameter should be passed reference

This commit is contained in:
victorbjelkholm 2013-09-23 12:08:25 +02:00 committed by Jacob Kiers
parent cec7f31cda
commit da8c3c46c5
2 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ class Server
* *
* @return JacobKiers\OAuth\Token\TokenInterface * @return JacobKiers\OAuth\Token\TokenInterface
*/ */
public function fetchRequestToken(RequestInterface &$request) public function fetchRequestToken(RequestInterface $request)
{ {
$this->getVersion($request); $this->getVersion($request);
@ -115,7 +115,7 @@ class Server
* *
* @return JacobKiers\OAuth\Token\TokenInterface * @return JacobKiers\OAuth\Token\TokenInterface
*/ */
public function fetchAccessToken(RequestInterface &$request) public function fetchAccessToken(RequestInterface $request)
{ {
$this->getVersion($request); $this->getVersion($request);
@ -139,7 +139,7 @@ class Server
* *
* @return array Consumer and Token * @return array Consumer and Token
*/ */
public function verifyRequest(RequestInterface &$request) public function verifyRequest(RequestInterface $request)
{ {
$this->getVersion($request); $this->getVersion($request);
$consumer = $this->getConsumer($request); $consumer = $this->getConsumer($request);
@ -159,7 +159,7 @@ class Server
* *
* @throws JacobKiers\OAuth\OAuthException * @throws JacobKiers\OAuth\OAuthException
*/ */
private function getVersion(RequestInterface &$request) private function getVersion(RequestInterface $request)
{ {
$version = $request->getOAuthVersion(); $version = $request->getOAuthVersion();
if (!$version) { if (!$version) {

View File

@ -49,7 +49,7 @@ abstract class RsaSha1 extends SignatureMethod
* Either way should return a string representation of the certificate * 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: * Up to the SP to implement this lookup of keys. Possible ideas are:
@ -57,7 +57,7 @@ abstract class RsaSha1 extends SignatureMethod
* *
* Either way should return a string representation of the certificate * Either way should return a string representation of the certificate
*/ */
abstract protected function fetchPrivateCert(&$request); abstract protected function fetchPrivateCert($request);
/** /**
* Build up the signature. * Build up the signature.