This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
22
{
23
/**
24
* {@inheritDoc}
25
*/
26
public function getMethod() : string
27
{
28
return oauth1\interfaces\Signer::METHOD_RSA_SHA1;
29
}
30
31
/**
32
* {@inheritDoc}
33
*
34
* Note: The OAUth Token is entirely ignored in this signing flow, as per spec.
35
*/
36
public function sign(Request $request, array $params, auth\id\credentials\Client $client, auth\interfaces\Credentials $token = null) : string
37
{
38
// Base64 encode the generated base string signed using the RSA-SHA1 method using our client secret,
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.