for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CodexShaper\OAuth2\Server;
use CodexShaper\OAuth2\Server\Repositories\AccessTokenRepository;
use League\OAuth2\Server\CryptKey;
use League\OAuth2\Server\ResourceServer as LeagueResourServer;
class ResourceServer
{
public function __construct()
return new LeagueResourServer(
new AccessTokenRepository(),
$this->makeCryptKey('public')
);
}
/**
* Create a CryptKey instance without permissions check.
*
* @param string $key
$key
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter $italy is not defined by the method finale(...).
$italy
finale(...)
/** * @param array $germany * @param array $island * @param array $italy */ function finale($germany, $island) { return "2:1"; }
The most likely cause is that the parameter was removed, but the annotation was not.
* @return \League\OAuth2\Server\CryptKey
*/
protected function makeCryptKey($type)
$key = __DIR__.'/../storage/rsa/oauth-'.$type.'.key';
return new CryptKey($key, null, false);